-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeysym.rs
4830 lines (4802 loc) · 176 KB
/
keysym.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//! [`Keysym`](x11rb::protocol::xproto::Keysym) wrapper
//! KeysymHash with all keycodes and keysyms in a `BiMap`
use super::keys::CharacterMap;
use anyhow::{Context, Result};
use bimap::BiMap;
use once_cell::sync::Lazy;
use serde::{Deserialize, Serialize};
use std::{cmp::Ordering, fmt};
use thiserror::Error;
use x11rb::protocol::xproto::Keysym;
use xkbcommon::xkb;
// ================== Keysym ======================
/// A [`Keysym`](x11rb::protocol::xproto::Keysym) wrapper
#[derive(Debug, PartialEq, Eq, Copy, Clone, Hash, Serialize, Deserialize, Default)]
pub(crate) struct XKeysym(pub(crate) Keysym);
impl XKeysym {
/// Create a new instance of `XKeysym` from a [`Keysym`](xkb::Keysym)
pub(crate) fn new(inner: Keysym) -> Self {
Self(inner)
}
}
impl From<CharacterMap> for XKeysym {
fn from(charmap: CharacterMap) -> XKeysym {
XKeysym(charmap.symbol())
}
}
impl From<Keysym> for XKeysym {
fn from(inner: Keysym) -> XKeysym {
XKeysym(inner)
}
}
impl Ord for XKeysym {
fn cmp(&self, other: &XKeysym) -> Ordering {
self.0.cmp(&other.0)
}
}
impl PartialOrd for XKeysym {
fn partial_cmp(&self, other: &XKeysym) -> Option<Ordering> {
Some(self.cmp(other))
}
}
impl fmt::Display for XKeysym {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.0)
}
}
// ================== Unicode =====================
/// A pair holding the unicode code-point, as well as the `Keysym` of the key
#[derive(Debug, PartialEq, Eq, Clone, Hash)]
pub(crate) struct Unicode {
keysym: Keysym,
unicode: char,
}
impl Unicode {
/// Create a new instance of a `Unicode` code-pair
pub(crate) fn new(keysym: Keysym, unicode: char) -> Self {
Self { keysym, unicode }
}
}
// ============== KeysymHash Errors ================
/// Errors used for `KeysymHash`
#[derive(Debug, Error)]
pub(crate) enum Error {
#[error("{0} was not found in the database")]
InvalidKey(String),
#[error("failed to convert {0} to UTF-8")]
Utf8Conversion(String),
}
//================== KeysymHash ===================
// x11-rs: Rust bindings for X11 libraries
// The X11 libraries are available under the MIT license.
// These bindings are public domain.
// Taken from the `x11` crate and modified for serialization
/// Hash of available keymaps
pub(crate) struct KeysymHash(Lazy<BiMap<String, Unicode>>);
impl fmt::Debug for KeysymHash {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{:#?}", self.0)
}
}
impl KeysymHash {
#[allow(clippy::declare_interior_mutable_const)]
pub(crate) const HASH: Self = Self(Lazy::new(|| {
let mut hash = BiMap::new();
hash.insert(
String::from("BackSpace"),
Unicode::new(xkb::KEY_BackSpace, '\u{8}'),
); // 0xFF08
hash.insert(String::from("Tab"), Unicode::new(xkb::KEY_Tab, '\u{9}')); // 0xFF09
hash.insert(
String::from("Linefeed"),
Unicode::new(xkb::KEY_Linefeed, '\u{a}'),
); // 0xFF0A
hash.insert(String::from("Clear"), Unicode::new(xkb::KEY_Clear, '\u{b}')); // 0xFF0B
hash.insert(
String::from("Return"),
Unicode::new(xkb::KEY_Return, '\u{d}'),
); // 0xFF0D
hash.insert(
String::from("Pause"),
Unicode::new(xkb::KEY_Pause, '\u{13}'),
); // 0xFF13
hash.insert(
String::from("Scroll_Lock"),
Unicode::new(xkb::KEY_Scroll_Lock, '\u{14}'),
); // 0xFF14
hash.insert(
String::from("Sys_Req"),
Unicode::new(xkb::KEY_Sys_Req, '\u{15}'),
); // 0xFF15
hash.insert(
String::from("Escape"),
Unicode::new(xkb::KEY_Escape, '\u{1b}'),
); // 0xFF1B
hash.insert(
String::from("Delete"),
Unicode::new(xkb::KEY_Delete, '\u{0}'),
); // 0xFFFF
hash.insert(
String::from("Multi_key"),
Unicode::new(xkb::KEY_Multi_key, '\u{0}'),
); // 0xFF20
hash.insert(String::from("Kanji"), Unicode::new(xkb::KEY_Kanji, '\u{0}')); // 0xFF21
hash.insert(
String::from("Muhenkan"),
Unicode::new(xkb::KEY_Muhenkan, '\u{0}'),
); // 0xFF22
hash.insert(
String::from("Henkan_Mode"),
Unicode::new(xkb::KEY_Henkan_Mode, '\u{0}'),
); // 0xFF23
hash.insert(
String::from("Henkan"),
Unicode::new(xkb::KEY_Henkan, '\u{0}'),
); // 0xFF23
hash.insert(
String::from("Romaji"),
Unicode::new(xkb::KEY_Romaji, '\u{0}'),
); // 0xFF24
hash.insert(
String::from("Hiragana"),
Unicode::new(xkb::KEY_Hiragana, '\u{0}'),
); // 0xFF25
hash.insert(
String::from("Katakana"),
Unicode::new(xkb::KEY_Katakana, '\u{0}'),
); // 0xFF26
hash.insert(
String::from("Hiragana_Katakana"),
Unicode::new(xkb::KEY_Hiragana_Katakana, '\u{0}'),
); // 0xFF27
hash.insert(
String::from("Zenkaku"),
Unicode::new(xkb::KEY_Zenkaku, '\u{0}'),
); // 0xFF28
hash.insert(
String::from("Hankaku"),
Unicode::new(xkb::KEY_Hankaku, '\u{0}'),
); // 0xFF29
hash.insert(
String::from("Zenkaku_Hankaku"),
Unicode::new(xkb::KEY_Zenkaku_Hankaku, '\u{0}'),
); // 0xFF2A
hash.insert(
String::from("Touroku"),
Unicode::new(xkb::KEY_Touroku, '\u{0}'),
); // 0xFF2B
hash.insert(
String::from("Massyo"),
Unicode::new(xkb::KEY_Massyo, '\u{0}'),
); // 0xFF2C
hash.insert(
String::from("Kana_Lock"),
Unicode::new(xkb::KEY_Kana_Lock, '\u{0}'),
); // 0xFF2D
hash.insert(
String::from("Kana_Shift"),
Unicode::new(xkb::KEY_Kana_Shift, '\u{0}'),
); // 0xFF2E
hash.insert(
String::from("Eisu_Shift"),
Unicode::new(xkb::KEY_Eisu_Shift, '\u{0}'),
); // 0xFF2F
hash.insert(
String::from("Eisu_toggle"),
Unicode::new(xkb::KEY_Eisu_toggle, '\u{0}'),
); // 0xFF30
hash.insert(String::from("Home"), Unicode::new(xkb::KEY_Home, '\u{0}')); // 0xFF50
hash.insert(String::from("Left"), Unicode::new(xkb::KEY_Left, '\u{0}')); // 0xFF51
hash.insert(String::from("Up"), Unicode::new(xkb::KEY_Up, '\u{0}')); // 0xFF52
hash.insert(String::from("Right"), Unicode::new(xkb::KEY_Right, '\u{0}')); // 0xFF53
hash.insert(String::from("Down"), Unicode::new(xkb::KEY_Down, '\u{0}')); // 0xFF54
hash.insert(String::from("Prior"), Unicode::new(xkb::KEY_Prior, '\u{0}')); // 0xFF55
hash.insert(
String::from("Page_Up"),
Unicode::new(xkb::KEY_Page_Up, '\u{0}'),
); // 0xFF55
hash.insert(String::from("Next"), Unicode::new(xkb::KEY_Next, '\u{0}')); // 0xFF56
hash.insert(
String::from("Page_Down"),
Unicode::new(xkb::KEY_Page_Down, '\u{0}'),
); // 0xFF56
hash.insert(String::from("End"), Unicode::new(xkb::KEY_End, '\u{0}')); // 0xFF57
hash.insert(String::from("Begin"), Unicode::new(xkb::KEY_Begin, '\u{0}')); // 0xFF58
hash.insert(
String::from("Select"),
Unicode::new(xkb::KEY_Select, '\u{0}'),
); // 0xFF60
hash.insert(String::from("Print"), Unicode::new(xkb::KEY_Print, '\u{0}')); // 0xFF61
hash.insert(
String::from("Execute"),
Unicode::new(xkb::KEY_Execute, '\u{0}'),
); // 0xFF62
hash.insert(
String::from("Insert"),
Unicode::new(xkb::KEY_Insert, '\u{0}'),
); // 0xFF63
hash.insert(String::from("Undo"), Unicode::new(xkb::KEY_Undo, '\u{0}')); // 0xFF65
hash.insert(String::from("Redo"), Unicode::new(xkb::KEY_Redo, '\u{0}')); // 0xFF66
hash.insert(String::from("Menu"), Unicode::new(xkb::KEY_Menu, '\u{0}')); // 0xFF67
hash.insert(String::from("Find"), Unicode::new(xkb::KEY_Find, '\u{0}')); // 0xFF68
hash.insert(
String::from("Cancel"),
Unicode::new(xkb::KEY_Cancel, '\u{0}'),
); // 0xFF69
hash.insert(String::from("Help"), Unicode::new(xkb::KEY_Help, '\u{0}')); // 0xFF6A
hash.insert(String::from("Break"), Unicode::new(xkb::KEY_Break, '\u{0}')); // 0xFF6B
hash.insert(
String::from("Mode_switch"),
Unicode::new(xkb::KEY_Mode_switch, '\u{0}'),
); // 0xFF7E
hash.insert(
String::from("script_switch"),
Unicode::new(xkb::KEY_script_switch, '\u{0}'),
); // 0xFF7E
hash.insert(
String::from("Num_Lock"),
Unicode::new(xkb::KEY_Num_Lock, '\u{0}'),
); // 0xFF7F
hash.insert(
String::from("KP_Space"),
Unicode::new(xkb::KEY_KP_Space, '\u{20}'),
); // 0xFF80
hash.insert(
String::from("KP_Tab"),
Unicode::new(xkb::KEY_KP_Tab, '\u{9}'),
); // 0xFF89
hash.insert(
String::from("KP_Enter"),
Unicode::new(xkb::KEY_KP_Enter, '\u{d}'),
); // 0xFF8D
hash.insert(String::from("KP_F1"), Unicode::new(xkb::KEY_KP_F1, '\u{0}')); // 0xFF91
hash.insert(String::from("KP_F2"), Unicode::new(xkb::KEY_KP_F2, '\u{0}')); // 0xFF92
hash.insert(String::from("KP_F3"), Unicode::new(xkb::KEY_KP_F3, '\u{0}')); // 0xFF93
hash.insert(String::from("KP_F4"), Unicode::new(xkb::KEY_KP_F4, '\u{0}')); // 0xFF94
hash.insert(
String::from("KP_Home"),
Unicode::new(xkb::KEY_KP_Home, '\u{0}'),
); // 0xFF95
hash.insert(
String::from("KP_Left"),
Unicode::new(xkb::KEY_KP_Left, '\u{0}'),
); // 0xFF96
hash.insert(String::from("KP_Up"), Unicode::new(xkb::KEY_KP_Up, '\u{0}')); // 0xFF97
hash.insert(
String::from("KP_Right"),
Unicode::new(xkb::KEY_KP_Right, '\u{0}'),
); // 0xFF98
hash.insert(
String::from("KP_Down"),
Unicode::new(xkb::KEY_KP_Down, '\u{0}'),
); // 0xFF99
hash.insert(
String::from("KP_Prior"),
Unicode::new(xkb::KEY_KP_Prior, '\u{0}'),
); // 0xFF9A
hash.insert(
String::from("KP_Page_Up"),
Unicode::new(xkb::KEY_KP_Page_Up, '\u{0}'),
); // 0xFF9A
hash.insert(
String::from("KP_Next"),
Unicode::new(xkb::KEY_KP_Next, '\u{0}'),
); // 0xFF9B
hash.insert(
String::from("KP_Page_Down"),
Unicode::new(xkb::KEY_KP_Page_Down, '\u{0}'),
); // 0xFF9B
hash.insert(
String::from("KP_End"),
Unicode::new(xkb::KEY_KP_End, '\u{0}'),
); // 0xFF9C
hash.insert(
String::from("KP_Begin"),
Unicode::new(xkb::KEY_KP_Begin, '\u{0}'),
); // 0xFF9D
hash.insert(
String::from("KP_Insert"),
Unicode::new(xkb::KEY_KP_Insert, '\u{0}'),
); // 0xFF9E
hash.insert(
String::from("KP_Delete"),
Unicode::new(xkb::KEY_KP_Delete, '\u{0}'),
); // 0xFF9F
hash.insert(
String::from("KP_Equal"),
Unicode::new(xkb::KEY_KP_Equal, '\u{3d}'),
); // 0xFFBD
hash.insert(
String::from("KP_Multiply"),
Unicode::new(xkb::KEY_KP_Multiply, '\u{2a}'),
); // 0xFFAA
hash.insert(
String::from("KP_Add"),
Unicode::new(xkb::KEY_KP_Add, '\u{2b}'),
); // 0xFFAB
hash.insert(
String::from("KP_Separator"),
Unicode::new(xkb::KEY_KP_Separator, '\u{2c}'),
); // 0xFFAC
hash.insert(
String::from("KP_Subtract"),
Unicode::new(xkb::KEY_KP_Subtract, '\u{2d}'),
); // 0xFFAD
hash.insert(
String::from("KP_Decimal"),
Unicode::new(xkb::KEY_KP_Decimal, '\u{2e}'),
); // 0xFFAE
hash.insert(
String::from("KP_Divide"),
Unicode::new(xkb::KEY_KP_Divide, '\u{2f}'),
); // 0xFFAF
hash.insert(String::from("KP_0"), Unicode::new(xkb::KEY_KP_0, '\u{30}')); // 0xFFB0
hash.insert(String::from("KP_1"), Unicode::new(xkb::KEY_KP_1, '\u{31}')); // 0xFFB1
hash.insert(String::from("KP_2"), Unicode::new(xkb::KEY_KP_2, '\u{32}')); // 0xFFB2
hash.insert(String::from("KP_3"), Unicode::new(xkb::KEY_KP_3, '\u{33}')); // 0xFFB3
hash.insert(String::from("KP_4"), Unicode::new(xkb::KEY_KP_4, '\u{34}')); // 0xFFB4
hash.insert(String::from("KP_5"), Unicode::new(xkb::KEY_KP_5, '\u{35}')); // 0xFFB5
hash.insert(String::from("KP_6"), Unicode::new(xkb::KEY_KP_6, '\u{36}')); // 0xFFB6
hash.insert(String::from("KP_7"), Unicode::new(xkb::KEY_KP_7, '\u{37}')); // 0xFFB7
hash.insert(String::from("KP_8"), Unicode::new(xkb::KEY_KP_8, '\u{38}')); // 0xFFB8
hash.insert(String::from("KP_9"), Unicode::new(xkb::KEY_KP_9, '\u{39}')); // 0xFFB9
hash.insert(String::from("F1"), Unicode::new(xkb::KEY_F1, '\u{0}')); // 0xFFBE
hash.insert(String::from("F2"), Unicode::new(xkb::KEY_F2, '\u{0}')); // 0xFFBF
hash.insert(String::from("F3"), Unicode::new(xkb::KEY_F3, '\u{0}')); // 0xFFC0
hash.insert(String::from("F4"), Unicode::new(xkb::KEY_F4, '\u{0}')); // 0xFFC1
hash.insert(String::from("F5"), Unicode::new(xkb::KEY_F5, '\u{0}')); // 0xFFC2
hash.insert(String::from("F6"), Unicode::new(xkb::KEY_F6, '\u{0}')); // 0xFFC3
hash.insert(String::from("F7"), Unicode::new(xkb::KEY_F7, '\u{0}')); // 0xFFC4
hash.insert(String::from("F8"), Unicode::new(xkb::KEY_F8, '\u{0}')); // 0xFFC5
hash.insert(String::from("F9"), Unicode::new(xkb::KEY_F9, '\u{0}')); // 0xFFC6
hash.insert(String::from("F10"), Unicode::new(xkb::KEY_F10, '\u{0}')); // 0xFFC7
hash.insert(String::from("F11"), Unicode::new(xkb::KEY_F11, '\u{0}')); // 0xFFC8
hash.insert(String::from("L1"), Unicode::new(xkb::KEY_L1, '\u{0}')); // 0xFFC8
hash.insert(String::from("F12"), Unicode::new(xkb::KEY_F12, '\u{0}')); // 0xFFC9
hash.insert(String::from("L2"), Unicode::new(xkb::KEY_L2, '\u{0}')); // 0xFFC9
hash.insert(String::from("F13"), Unicode::new(xkb::KEY_F13, '\u{0}')); // 0xFFCA
hash.insert(String::from("L3"), Unicode::new(xkb::KEY_L3, '\u{0}')); // 0xFFCA
hash.insert(String::from("F14"), Unicode::new(xkb::KEY_F14, '\u{0}')); // 0xFFCB
hash.insert(String::from("L4"), Unicode::new(xkb::KEY_L4, '\u{0}')); // 0xFFCB
hash.insert(String::from("F15"), Unicode::new(xkb::KEY_F15, '\u{0}')); // 0xFFCC
hash.insert(String::from("L5"), Unicode::new(xkb::KEY_L5, '\u{0}')); // 0xFFCC
hash.insert(String::from("F16"), Unicode::new(xkb::KEY_F16, '\u{0}')); // 0xFFCD
hash.insert(String::from("L6"), Unicode::new(xkb::KEY_L6, '\u{0}')); // 0xFFCD
hash.insert(String::from("F17"), Unicode::new(xkb::KEY_F17, '\u{0}')); // 0xFFCE
hash.insert(String::from("L7"), Unicode::new(xkb::KEY_L7, '\u{0}')); // 0xFFCE
hash.insert(String::from("F18"), Unicode::new(xkb::KEY_F18, '\u{0}')); // 0xFFCF
hash.insert(String::from("L8"), Unicode::new(xkb::KEY_L8, '\u{0}')); // 0xFFCF
hash.insert(String::from("F19"), Unicode::new(xkb::KEY_F19, '\u{0}')); // 0xFFD0
hash.insert(String::from("L9"), Unicode::new(xkb::KEY_L9, '\u{0}')); // 0xFFD0
hash.insert(String::from("F20"), Unicode::new(xkb::KEY_F20, '\u{0}')); // 0xFFD1
hash.insert(String::from("L10"), Unicode::new(xkb::KEY_L10, '\u{0}')); // 0xFFD1
hash.insert(String::from("F21"), Unicode::new(xkb::KEY_F21, '\u{0}')); // 0xFFD2
hash.insert(String::from("R1"), Unicode::new(xkb::KEY_R1, '\u{0}')); // 0xFFD2
hash.insert(String::from("F22"), Unicode::new(xkb::KEY_F22, '\u{0}')); // 0xFFD3
hash.insert(String::from("R2"), Unicode::new(xkb::KEY_R2, '\u{0}')); // 0xFFD3
hash.insert(String::from("F23"), Unicode::new(xkb::KEY_F23, '\u{0}')); // 0xFFD4
hash.insert(String::from("R3"), Unicode::new(xkb::KEY_R3, '\u{0}')); // 0xFFD4
hash.insert(String::from("F24"), Unicode::new(xkb::KEY_F24, '\u{0}')); // 0xFFD5
hash.insert(String::from("R4"), Unicode::new(xkb::KEY_R4, '\u{0}')); // 0xFFD5
hash.insert(String::from("F25"), Unicode::new(xkb::KEY_F25, '\u{0}')); // 0xFFD6
hash.insert(String::from("R5"), Unicode::new(xkb::KEY_R5, '\u{0}')); // 0xFFD6
hash.insert(String::from("F26"), Unicode::new(xkb::KEY_F26, '\u{0}')); // 0xFFD7
hash.insert(String::from("R6"), Unicode::new(xkb::KEY_R6, '\u{0}')); // 0xFFD7
hash.insert(String::from("F27"), Unicode::new(xkb::KEY_F27, '\u{0}')); // 0xFFD8
hash.insert(String::from("R7"), Unicode::new(xkb::KEY_R7, '\u{0}')); // 0xFFD8
hash.insert(String::from("F28"), Unicode::new(xkb::KEY_F28, '\u{0}')); // 0xFFD9
hash.insert(String::from("R8"), Unicode::new(xkb::KEY_R8, '\u{0}')); // 0xFFD9
hash.insert(String::from("F29"), Unicode::new(xkb::KEY_F29, '\u{0}')); // 0xFFDA
hash.insert(String::from("R9"), Unicode::new(xkb::KEY_R9, '\u{0}')); // 0xFFDA
hash.insert(String::from("F30"), Unicode::new(xkb::KEY_F30, '\u{0}')); // 0xFFDB
hash.insert(String::from("R10"), Unicode::new(xkb::KEY_R10, '\u{0}')); // 0xFFDB
hash.insert(String::from("F31"), Unicode::new(xkb::KEY_F31, '\u{0}')); // 0xFFDC
hash.insert(String::from("R11"), Unicode::new(xkb::KEY_R11, '\u{0}')); // 0xFFDC
hash.insert(String::from("F32"), Unicode::new(xkb::KEY_F32, '\u{0}')); // 0xFFDD
hash.insert(String::from("R12"), Unicode::new(xkb::KEY_R12, '\u{0}')); // 0xFFDD
hash.insert(String::from("F33"), Unicode::new(xkb::KEY_F33, '\u{0}')); // 0xFFDE
hash.insert(String::from("R13"), Unicode::new(xkb::KEY_R13, '\u{0}')); // 0xFFDE
hash.insert(String::from("F34"), Unicode::new(xkb::KEY_F34, '\u{0}')); // 0xFFDF
hash.insert(String::from("R14"), Unicode::new(xkb::KEY_R14, '\u{0}')); // 0xFFDF
hash.insert(String::from("F35"), Unicode::new(xkb::KEY_F35, '\u{0}')); // 0xFFE0
hash.insert(String::from("R15"), Unicode::new(xkb::KEY_R15, '\u{0}')); // 0xFFE0
hash.insert(
String::from("Shift_L"),
Unicode::new(xkb::KEY_Shift_L, '\u{0}'),
); // 0xFFE1
hash.insert(
String::from("Shift_R"),
Unicode::new(xkb::KEY_Shift_R, '\u{0}'),
); // 0xFFE2
hash.insert(
String::from("Control_L"),
Unicode::new(xkb::KEY_Control_L, '\u{0}'),
); // 0xFFE3
hash.insert(
String::from("Control_R"),
Unicode::new(xkb::KEY_Control_R, '\u{0}'),
); // 0xFFE4
hash.insert(
String::from("Caps_Lock"),
Unicode::new(xkb::KEY_Caps_Lock, '\u{0}'),
); // 0xFFE5
hash.insert(
String::from("Shift_Lock"),
Unicode::new(xkb::KEY_Shift_Lock, '\u{0}'),
); // 0xFFE6
hash.insert(
String::from("Meta_L"),
Unicode::new(xkb::KEY_Meta_L, '\u{0}'),
); // 0xFFE7
hash.insert(
String::from("Meta_R"),
Unicode::new(xkb::KEY_Meta_R, '\u{0}'),
); // 0xFFE8
hash.insert(String::from("Alt_L"), Unicode::new(xkb::KEY_Alt_L, '\u{0}')); // 0xFFE9
hash.insert(String::from("Alt_R"), Unicode::new(xkb::KEY_Alt_R, '\u{0}')); // 0xFFEA
hash.insert(
String::from("Super_L"),
Unicode::new(xkb::KEY_Super_L, '\u{0}'),
); // 0xFFEB
hash.insert(
String::from("Super_R"),
Unicode::new(xkb::KEY_Super_R, '\u{0}'),
); // 0xFFEC
hash.insert(
String::from("Hyper_L"),
Unicode::new(xkb::KEY_Hyper_L, '\u{0}'),
); // 0xFFED
hash.insert(
String::from("Hyper_R"),
Unicode::new(xkb::KEY_Hyper_R, '\u{0}'),
); // 0xFFEE
hash.insert(
String::from("space"),
Unicode::new(xkb::KEY_space, '\u{20}'),
); // 0x020
hash.insert(
String::from("exclam"),
Unicode::new(xkb::KEY_exclam, '\u{21}'),
); // 0x021
hash.insert(
String::from("quotedbl"),
Unicode::new(xkb::KEY_quotedbl, '\u{22}'),
); // 0x022
hash.insert(
String::from("numbersign"),
Unicode::new(xkb::KEY_numbersign, '\u{23}'),
); // 0x023
hash.insert(
String::from("dollar"),
Unicode::new(xkb::KEY_dollar, '\u{24}'),
); // 0x024
hash.insert(
String::from("percent"),
Unicode::new(xkb::KEY_percent, '\u{25}'),
); // 0x025
hash.insert(
String::from("ampersand"),
Unicode::new(xkb::KEY_ampersand, '\u{26}'),
); // 0x026
hash.insert(
String::from("apostrophe"),
Unicode::new(xkb::KEY_apostrophe, '\u{27}'),
); // 0x027
hash.insert(
String::from("quoteright"),
Unicode::new(xkb::KEY_quoteright, '\u{27}'),
); // 0x027
hash.insert(
String::from("parenleft"),
Unicode::new(xkb::KEY_parenleft, '\u{28}'),
); // 0x028
hash.insert(
String::from("parenright"),
Unicode::new(xkb::KEY_parenright, '\u{29}'),
); // 0x029
hash.insert(
String::from("asterisk"),
Unicode::new(xkb::KEY_asterisk, '\u{2a}'),
); // 0x02a
hash.insert(String::from("plus"), Unicode::new(xkb::KEY_plus, '\u{2b}')); // 0x02b
hash.insert(
String::from("comma"),
Unicode::new(xkb::KEY_comma, '\u{2c}'),
); // 0x02c
hash.insert(
String::from("minus"),
Unicode::new(xkb::KEY_minus, '\u{2d}'),
); // 0x02d
hash.insert(
String::from("period"),
Unicode::new(xkb::KEY_period, '\u{2e}'),
); // 0x02e
hash.insert(
String::from("slash"),
Unicode::new(xkb::KEY_slash, '\u{2f}'),
); // 0x02f
hash.insert(String::from("0"), Unicode::new(xkb::KEY_0, '\u{30}')); // 0x030
hash.insert(String::from("1"), Unicode::new(xkb::KEY_1, '\u{31}')); // 0x031
hash.insert(String::from("2"), Unicode::new(xkb::KEY_2, '\u{32}')); // 0x032
hash.insert(String::from("3"), Unicode::new(xkb::KEY_3, '\u{33}')); // 0x033
hash.insert(String::from("4"), Unicode::new(xkb::KEY_4, '\u{34}')); // 0x034
hash.insert(String::from("5"), Unicode::new(xkb::KEY_5, '\u{35}')); // 0x035
hash.insert(String::from("6"), Unicode::new(xkb::KEY_6, '\u{36}')); // 0x036
hash.insert(String::from("7"), Unicode::new(xkb::KEY_7, '\u{37}')); // 0x037
hash.insert(String::from("8"), Unicode::new(xkb::KEY_8, '\u{38}')); // 0x038
hash.insert(String::from("9"), Unicode::new(xkb::KEY_9, '\u{39}')); // 0x039
hash.insert(
String::from("colon"),
Unicode::new(xkb::KEY_colon, '\u{3a}'),
); // 0x03a
hash.insert(
String::from("semicolon"),
Unicode::new(xkb::KEY_semicolon, '\u{3b}'),
); // 0x03b
hash.insert(String::from("less"), Unicode::new(xkb::KEY_less, '\u{3c}')); // 0x03c
hash.insert(
String::from("equal"),
Unicode::new(xkb::KEY_equal, '\u{3d}'),
); // 0x03d
hash.insert(
String::from("greater"),
Unicode::new(xkb::KEY_greater, '\u{3e}'),
); // 0x03e
hash.insert(
String::from("question"),
Unicode::new(xkb::KEY_question, '\u{3f}'),
); // 0x03f
hash.insert(String::from("at"), Unicode::new(xkb::KEY_at, '\u{40}')); // 0x040
hash.insert(String::from("A"), Unicode::new(xkb::KEY_A, '\u{41}')); // 0x041
hash.insert(String::from("B"), Unicode::new(xkb::KEY_B, '\u{42}')); // 0x042
hash.insert(String::from("C"), Unicode::new(xkb::KEY_C, '\u{43}')); // 0x043
hash.insert(String::from("D"), Unicode::new(xkb::KEY_D, '\u{44}')); // 0x044
hash.insert(String::from("E"), Unicode::new(xkb::KEY_E, '\u{45}')); // 0x045
hash.insert(String::from("F"), Unicode::new(xkb::KEY_F, '\u{46}')); // 0x046
hash.insert(String::from("G"), Unicode::new(xkb::KEY_G, '\u{47}')); // 0x047
hash.insert(String::from("H"), Unicode::new(xkb::KEY_H, '\u{48}')); // 0x048
hash.insert(String::from("I"), Unicode::new(xkb::KEY_I, '\u{49}')); // 0x049
hash.insert(String::from("J"), Unicode::new(xkb::KEY_J, '\u{4a}')); // 0x04a
hash.insert(String::from("K"), Unicode::new(xkb::KEY_K, '\u{4b}')); // 0x04b
hash.insert(String::from("L"), Unicode::new(xkb::KEY_L, '\u{4c}')); // 0x04c
hash.insert(String::from("M"), Unicode::new(xkb::KEY_M, '\u{4d}')); // 0x04d
hash.insert(String::from("N"), Unicode::new(xkb::KEY_N, '\u{4e}')); // 0x04e
hash.insert(String::from("O"), Unicode::new(xkb::KEY_O, '\u{4f}')); // 0x04f
hash.insert(String::from("P"), Unicode::new(xkb::KEY_P, '\u{50}')); // 0x050
hash.insert(String::from("Q"), Unicode::new(xkb::KEY_Q, '\u{51}')); // 0x051
hash.insert(String::from("R"), Unicode::new(xkb::KEY_R, '\u{52}')); // 0x052
hash.insert(String::from("S"), Unicode::new(xkb::KEY_S, '\u{53}')); // 0x053
hash.insert(String::from("T"), Unicode::new(xkb::KEY_T, '\u{54}')); // 0x054
hash.insert(String::from("U"), Unicode::new(xkb::KEY_U, '\u{55}')); // 0x055
hash.insert(String::from("V"), Unicode::new(xkb::KEY_V, '\u{56}')); // 0x056
hash.insert(String::from("W"), Unicode::new(xkb::KEY_W, '\u{57}')); // 0x057
hash.insert(String::from("X"), Unicode::new(xkb::KEY_X, '\u{58}')); // 0x058
hash.insert(String::from("Y"), Unicode::new(xkb::KEY_Y, '\u{59}')); // 0x059
hash.insert(String::from("Z"), Unicode::new(xkb::KEY_Z, '\u{5a}')); // 0x05a
hash.insert(
String::from("bracketleft"),
Unicode::new(xkb::KEY_bracketleft, '\u{5b}'),
); // 0x05b
hash.insert(
String::from("backslash"),
Unicode::new(xkb::KEY_backslash, '\u{5c}'),
); // 0x05c
hash.insert(
String::from("bracketright"),
Unicode::new(xkb::KEY_bracketright, '\u{5d}'),
); // 0x05d
hash.insert(
String::from("asciicircum"),
Unicode::new(xkb::KEY_asciicircum, '\u{5e}'),
); // 0x05e
hash.insert(
String::from("underscore"),
Unicode::new(xkb::KEY_underscore, '\u{5f}'),
); // 0x05f
hash.insert(
String::from("grave"),
Unicode::new(xkb::KEY_grave, '\u{60}'),
); // 0x060
hash.insert(
String::from("quoteleft"),
Unicode::new(xkb::KEY_quoteleft, '\u{60}'),
); // 0x060
hash.insert(String::from("a"), Unicode::new(xkb::KEY_a, '\u{61}')); // 0x061
hash.insert(String::from("b"), Unicode::new(xkb::KEY_b, '\u{62}')); // 0x062
hash.insert(String::from("c"), Unicode::new(xkb::KEY_c, '\u{63}')); // 0x063
hash.insert(String::from("d"), Unicode::new(xkb::KEY_d, '\u{64}')); // 0x064
hash.insert(String::from("e"), Unicode::new(xkb::KEY_e, '\u{65}')); // 0x065
hash.insert(String::from("f"), Unicode::new(xkb::KEY_f, '\u{66}')); // 0x066
hash.insert(String::from("g"), Unicode::new(xkb::KEY_g, '\u{67}')); // 0x067
hash.insert(String::from("h"), Unicode::new(xkb::KEY_h, '\u{68}')); // 0x068
hash.insert(String::from("i"), Unicode::new(xkb::KEY_i, '\u{69}')); // 0x069
hash.insert(String::from("j"), Unicode::new(xkb::KEY_j, '\u{6a}')); // 0x06a
hash.insert(String::from("k"), Unicode::new(xkb::KEY_k, '\u{6b}')); // 0x06b
hash.insert(String::from("l"), Unicode::new(xkb::KEY_l, '\u{6c}')); // 0x06c
hash.insert(String::from("m"), Unicode::new(xkb::KEY_m, '\u{6d}')); // 0x06d
hash.insert(String::from("n"), Unicode::new(xkb::KEY_n, '\u{6e}')); // 0x06e
hash.insert(String::from("o"), Unicode::new(xkb::KEY_o, '\u{6f}')); // 0x06f
hash.insert(String::from("p"), Unicode::new(xkb::KEY_p, '\u{70}')); // 0x070
hash.insert(String::from("q"), Unicode::new(xkb::KEY_q, '\u{71}')); // 0x071
hash.insert(String::from("r"), Unicode::new(xkb::KEY_r, '\u{72}')); // 0x072
hash.insert(String::from("s"), Unicode::new(xkb::KEY_s, '\u{73}')); // 0x073
hash.insert(String::from("t"), Unicode::new(xkb::KEY_t, '\u{74}')); // 0x074
hash.insert(String::from("u"), Unicode::new(xkb::KEY_u, '\u{75}')); // 0x075
hash.insert(String::from("v"), Unicode::new(xkb::KEY_v, '\u{76}')); // 0x076
hash.insert(String::from("w"), Unicode::new(xkb::KEY_w, '\u{77}')); // 0x077
hash.insert(String::from("x"), Unicode::new(xkb::KEY_x, '\u{78}')); // 0x078
hash.insert(String::from("y"), Unicode::new(xkb::KEY_y, '\u{79}')); // 0x079
hash.insert(String::from("z"), Unicode::new(xkb::KEY_z, '\u{7a}')); // 0x07a
hash.insert(
String::from("braceleft"),
Unicode::new(xkb::KEY_braceleft, '\u{7b}'),
); // 0x07b
hash.insert(String::from("bar"), Unicode::new(xkb::KEY_bar, '\u{7c}')); // 0x07c
hash.insert(
String::from("braceright"),
Unicode::new(xkb::KEY_braceright, '\u{7d}'),
); // 0x07d
hash.insert(
String::from("asciitilde"),
Unicode::new(xkb::KEY_asciitilde, '\u{7e}'),
); // 0x07e
hash.insert(
String::from("nobreakspace"),
Unicode::new(xkb::KEY_nobreakspace, '\u{a0}'),
); // 0x0a0
hash.insert(
String::from("exclamdown"),
Unicode::new(xkb::KEY_exclamdown, '\u{a1}'),
); // 0x0a1
hash.insert(String::from("cent"), Unicode::new(xkb::KEY_cent, '\u{a2}')); // 0x0a2
hash.insert(
String::from("sterling"),
Unicode::new(xkb::KEY_sterling, '\u{a3}'),
); // 0x0a3
hash.insert(
String::from("currency"),
Unicode::new(xkb::KEY_currency, '\u{a4}'),
); // 0x0a4
hash.insert(String::from("yen"), Unicode::new(xkb::KEY_yen, '\u{a5}')); // 0x0a5
hash.insert(
String::from("brokenbar"),
Unicode::new(xkb::KEY_brokenbar, '\u{a6}'),
); // 0x0a6
hash.insert(
String::from("section"),
Unicode::new(xkb::KEY_section, '\u{a7}'),
); // 0x0a7
hash.insert(
String::from("diaeresis"),
Unicode::new(xkb::KEY_diaeresis, '\u{a8}'),
); // 0x0a8
hash.insert(
String::from("copyright"),
Unicode::new(xkb::KEY_copyright, '\u{a9}'),
); // 0x0a9
hash.insert(
String::from("ordfeminine"),
Unicode::new(xkb::KEY_ordfeminine, '\u{aa}'),
); // 0x0aa
hash.insert(
String::from("guillemotleft"),
Unicode::new(xkb::KEY_guillemotleft, '\u{ab}'),
); // 0x0ab
hash.insert(
String::from("notsign"),
Unicode::new(xkb::KEY_notsign, '\u{ac}'),
); // 0x0ac
hash.insert(
String::from("hyphen"),
Unicode::new(xkb::KEY_hyphen, '\u{ad}'),
); // 0x0ad
hash.insert(
String::from("registered"),
Unicode::new(xkb::KEY_registered, '\u{ae}'),
); // 0x0ae
hash.insert(
String::from("macron"),
Unicode::new(xkb::KEY_macron, '\u{af}'),
); // 0x0af
hash.insert(
String::from("degree"),
Unicode::new(xkb::KEY_degree, '\u{b0}'),
); // 0x0b0
hash.insert(
String::from("plusminus"),
Unicode::new(xkb::KEY_plusminus, '\u{b1}'),
); // 0x0b1
hash.insert(
String::from("twosuperior"),
Unicode::new(xkb::KEY_twosuperior, '\u{b2}'),
); // 0x0b2
hash.insert(
String::from("threesuperior"),
Unicode::new(xkb::KEY_threesuperior, '\u{b3}'),
); // 0x0b3
hash.insert(
String::from("acute"),
Unicode::new(xkb::KEY_acute, '\u{b4}'),
); // 0x0b4
hash.insert(String::from("mu"), Unicode::new(xkb::KEY_mu, '\u{b5}')); // 0x0b5
hash.insert(
String::from("paragraph"),
Unicode::new(xkb::KEY_paragraph, '\u{b6}'),
); // 0x0b6
hash.insert(
String::from("periodcentered"),
Unicode::new(xkb::KEY_periodcentered, '\u{b7}'),
); // 0x0b7
hash.insert(
String::from("cedilla"),
Unicode::new(xkb::KEY_cedilla, '\u{b8}'),
); // 0x0b8
hash.insert(
String::from("onesuperior"),
Unicode::new(xkb::KEY_onesuperior, '\u{b9}'),
); // 0x0b9
hash.insert(
String::from("masculine"),
Unicode::new(xkb::KEY_masculine, '\u{ba}'),
); // 0x0ba
hash.insert(
String::from("guillemotright"),
Unicode::new(xkb::KEY_guillemotright, '\u{bb}'),
); // 0x0bb
hash.insert(
String::from("onequarter"),
Unicode::new(xkb::KEY_onequarter, '\u{bc}'),
); // 0x0bc
hash.insert(
String::from("onehalf"),
Unicode::new(xkb::KEY_onehalf, '\u{bd}'),
); // 0x0bd
hash.insert(
String::from("threequarters"),
Unicode::new(xkb::KEY_threequarters, '\u{be}'),
); // 0x0be
hash.insert(
String::from("questiondown"),
Unicode::new(xkb::KEY_questiondown, '\u{bf}'),
); // 0x0bf
hash.insert(
String::from("Agrave"),
Unicode::new(xkb::KEY_Agrave, '\u{c0}'),
); // 0x0c0
hash.insert(
String::from("Aacute"),
Unicode::new(xkb::KEY_Aacute, '\u{c1}'),
); // 0x0c1
hash.insert(
String::from("Acircumflex"),
Unicode::new(xkb::KEY_Acircumflex, '\u{c2}'),
); // 0x0c2
hash.insert(
String::from("Atilde"),
Unicode::new(xkb::KEY_Atilde, '\u{c3}'),
); // 0x0c3
hash.insert(
String::from("Adiaeresis"),
Unicode::new(xkb::KEY_Adiaeresis, '\u{c4}'),
); // 0x0c4
hash.insert(
String::from("Aring"),
Unicode::new(xkb::KEY_Aring, '\u{c5}'),
); // 0x0c5
hash.insert(String::from("AE"), Unicode::new(xkb::KEY_AE, '\u{c6}')); // 0x0c6
hash.insert(
String::from("Ccedilla"),
Unicode::new(xkb::KEY_Ccedilla, '\u{c7}'),
); // 0x0c7
hash.insert(
String::from("Egrave"),
Unicode::new(xkb::KEY_Egrave, '\u{c8}'),
); // 0x0c8
hash.insert(
String::from("Eacute"),
Unicode::new(xkb::KEY_Eacute, '\u{c9}'),
); // 0x0c9
hash.insert(
String::from("Ecircumflex"),
Unicode::new(xkb::KEY_Ecircumflex, '\u{ca}'),
); // 0x0ca
hash.insert(
String::from("Ediaeresis"),
Unicode::new(xkb::KEY_Ediaeresis, '\u{cb}'),
); // 0x0cb
hash.insert(
String::from("Igrave"),
Unicode::new(xkb::KEY_Igrave, '\u{cc}'),
); // 0x0cc
hash.insert(
String::from("Iacute"),
Unicode::new(xkb::KEY_Iacute, '\u{cd}'),
); // 0x0cd
hash.insert(
String::from("Icircumflex"),
Unicode::new(xkb::KEY_Icircumflex, '\u{ce}'),
); // 0x0ce
hash.insert(
String::from("Idiaeresis"),
Unicode::new(xkb::KEY_Idiaeresis, '\u{cf}'),
); // 0x0cf
hash.insert(String::from("ETH"), Unicode::new(xkb::KEY_ETH, '\u{d0}')); // 0x0d0
hash.insert(String::from("Eth"), Unicode::new(xkb::KEY_Eth, '\u{d0}')); // 0x0d0
hash.insert(
String::from("Ntilde"),
Unicode::new(xkb::KEY_Ntilde, '\u{d1}'),
); // 0x0d1
hash.insert(
String::from("Ograve"),
Unicode::new(xkb::KEY_Ograve, '\u{d2}'),
); // 0x0d2
hash.insert(
String::from("Oacute"),
Unicode::new(xkb::KEY_Oacute, '\u{d3}'),
); // 0x0d3
hash.insert(
String::from("Ocircumflex"),
Unicode::new(xkb::KEY_Ocircumflex, '\u{d4}'),
); // 0x0d4
hash.insert(
String::from("Otilde"),
Unicode::new(xkb::KEY_Otilde, '\u{d5}'),
); // 0x0d5
hash.insert(
String::from("Odiaeresis"),
Unicode::new(xkb::KEY_Odiaeresis, '\u{d6}'),
); // 0x0d6
hash.insert(
String::from("multiply"),
Unicode::new(xkb::KEY_multiply, '\u{d7}'),
); // 0x0d7
hash.insert(
String::from("Ooblique"),
Unicode::new(xkb::KEY_Ooblique, '\u{d8}'),
); // 0x0d8
hash.insert(
String::from("Ugrave"),
Unicode::new(xkb::KEY_Ugrave, '\u{d9}'),
); // 0x0d9
hash.insert(
String::from("Uacute"),
Unicode::new(xkb::KEY_Uacute, '\u{da}'),
); // 0x0da
hash.insert(
String::from("Ucircumflex"),
Unicode::new(xkb::KEY_Ucircumflex, '\u{db}'),
); // 0x0db
hash.insert(
String::from("Udiaeresis"),
Unicode::new(xkb::KEY_Udiaeresis, '\u{dc}'),
); // 0x0dc
hash.insert(
String::from("Yacute"),
Unicode::new(xkb::KEY_Yacute, '\u{dd}'),
); // 0x0dd
hash.insert(
String::from("THORN"),
Unicode::new(xkb::KEY_THORN, '\u{de}'),
); // 0x0de
hash.insert(
String::from("Thorn"),
Unicode::new(xkb::KEY_Thorn, '\u{de}'),
); // 0x0de
hash.insert(
String::from("ssharp"),
Unicode::new(xkb::KEY_ssharp, '\u{df}'),
); // 0x0df
hash.insert(
String::from("agrave"),
Unicode::new(xkb::KEY_agrave, '\u{e0}'),
); // 0x0e0
hash.insert(
String::from("aacute"),
Unicode::new(xkb::KEY_aacute, '\u{e1}'),
); // 0x0e1
hash.insert(
String::from("acircumflex"),
Unicode::new(xkb::KEY_acircumflex, '\u{e2}'),
); // 0x0e2
hash.insert(
String::from("atilde"),
Unicode::new(xkb::KEY_atilde, '\u{e3}'),
); // 0x0e3
hash.insert(
String::from("adiaeresis"),
Unicode::new(xkb::KEY_adiaeresis, '\u{e4}'),
); // 0x0e4
hash.insert(
String::from("aring"),
Unicode::new(xkb::KEY_aring, '\u{e5}'),
); // 0x0e5
hash.insert(String::from("ae"), Unicode::new(xkb::KEY_ae, '\u{e6}')); // 0x0e6
hash.insert(
String::from("ccedilla"),
Unicode::new(xkb::KEY_ccedilla, '\u{e7}'),
); // 0x0e7
hash.insert(
String::from("egrave"),
Unicode::new(xkb::KEY_egrave, '\u{e8}'),
); // 0x0e8
hash.insert(
String::from("eacute"),
Unicode::new(xkb::KEY_eacute, '\u{e9}'),
); // 0x0e9
hash.insert(
String::from("ecircumflex"),
Unicode::new(xkb::KEY_ecircumflex, '\u{ea}'),
); // 0x0ea
hash.insert(
String::from("ediaeresis"),
Unicode::new(xkb::KEY_ediaeresis, '\u{eb}'),
); // 0x0eb
hash.insert(
String::from("igrave"),
Unicode::new(xkb::KEY_igrave, '\u{ec}'),
); // 0x0ec
hash.insert(
String::from("iacute"),
Unicode::new(xkb::KEY_iacute, '\u{ed}'),
); // 0x0ed
hash.insert(
String::from("icircumflex"),
Unicode::new(xkb::KEY_icircumflex, '\u{ee}'),
); // 0x0ee
hash.insert(
String::from("idiaeresis"),
Unicode::new(xkb::KEY_idiaeresis, '\u{ef}'),
); // 0x0ef
hash.insert(String::from("eth"), Unicode::new(xkb::KEY_eth, '\u{f0}')); // 0x0f0
hash.insert(
String::from("ntilde"),
Unicode::new(xkb::KEY_ntilde, '\u{f1}'),
); // 0x0f1
hash.insert(
String::from("ograve"),
Unicode::new(xkb::KEY_ograve, '\u{f2}'),
); // 0x0f2
hash.insert(
String::from("oacute"),
Unicode::new(xkb::KEY_oacute, '\u{f3}'),
); // 0x0f3
hash.insert(
String::from("ocircumflex"),
Unicode::new(xkb::KEY_ocircumflex, '\u{f4}'),
); // 0x0f4
hash.insert(
String::from("otilde"),
Unicode::new(xkb::KEY_otilde, '\u{f5}'),
); // 0x0f5
hash.insert(
String::from("odiaeresis"),
Unicode::new(xkb::KEY_odiaeresis, '\u{f6}'),
); // 0x0f6
hash.insert(
String::from("division"),
Unicode::new(xkb::KEY_division, '\u{f7}'),
); // 0x0f7