/
hungarianansi.js
93 lines (89 loc) · 4.24 KB
/
hungarianansi.js
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
/* hungarian keyboard layouts
* file codepage: ansi
* contains layout: 'hungarian-qwertz-1' & 'hungarian-qwertz-2'
*
* To use:
* Point to this js file into your page header: <script src="layouts/hungarian.js" type="text/javascript"></script>
* Initialize the keyboard using: $('input').keyboard({ layout: 'hungarian-qwerty-2' });
*
* license for this file: WTFPL, unless the source layout site has a problem with me using them as a reference
*/
/* qwertz by Tóth Gergely (https://github.com/tgely) - helped :http://www.fileformat.info/info/unicode/char/search.htm */
$.keyboard.layouts['hungarianansi-qwertz-1'] = {
'default' : [
"0 1 2 3 4 5 6 7 8 9 \u00f6 \u00fc \u00f3 \u0171 {bksp}",
"{tab} q w e r t z u i o p \u0151 \u00fa",
"a s d f g h j k l \u00e9 \u00e1 {enter}",
"{shift} \u00ed y x c v b n m , . - {shift}",
"{accept} {alt} {space} {alt} {cancel}"
],
'shift' : [
'\u00a7 \u0027 " + ! % / = ( ) \u00d6 \u00dc \u00d3 \u0170 {bksp}',
"{tab} Q W E R T Z U I O P \u0150 \u00da",
"A S D F G H J K L \u00c9 \u00c1 {enter}",
"{shift} \u00cd Y X C V B N M ; : _ {shift}",
"{accept} {alt} {space} {alt} {cancel}"
],
'alt' : [
'{sp:1} \u007e \u02c7 \u005e \u02d8 \u00b0 \u02db \u0060 \u02d9 \u00b4 \u02dd \u00a8 \u00b8 \u00a4 {bksp}', // most of non used
'{tab} \\ | \u00c4 {sp:1} {sp:1} {sp:1} \u20ac \u00cd {sp:1} {sp:1} \u00f7 \u00d7',
'\u00e4 \u0111 \u0110 [ ] {sp:1} \u00ed \u0142 \u0141 $ \u00df {enter}',
'{shift} < > # & @ { } < ; > * {shift}',
'{accept} {alt} {space} {alt} {cancel}'
]
};
$.keyboard.layouts['hungarianansi-qwertz-2'] = {
'default' : [
"0 1 2 3 4 5 6 7 8 9 \u00f6 \u00fc \u00f3 {bksp}",
"{tab} q w e r t z u i o p \u0151 \u00fa",
"a s d f g h j k l \u00e9 \u00e1 \u0171 {enter}",
"{shift} \u00ed y x c v b n m , . - {shift}",
"{accept} {alt} {space} {alt} {cancel}"
],
'shift' : [
'\u00a7 \u0027 " + ! % / = ( ) \u00d6 \u00dc \u00d3 {bksp}',
"{tab} Q W E R T Z U I O P \u0150 \u00da",
"A S D F G H J K L \u00c9 \u00c1 \u0170 {enter}",
"{shift} \u00cd Y X C V B N M ; : _ {shift}",
"{accept} {alt} {space} {alt} {cancel}"
],
'alt' : [
'{sp:1} \u007e \u02c7 \u005e \u02d8 \u00b0 \u02db \u0060 \u02d9 \u00b4 \u02dd \u00a8 \u00b8 {bksp}', // most of non used
'{tab} \\ | \u00c4 {sp:1} {sp:1} {sp:1} \u20ac \u00cd {sp:1} {sp:1} \u00f7 \u00d7',
'\u00e4 \u0111 \u0110 [ ] {sp:1} \u00ed \u0142 \u0141 $ \u00df \u00a4 {enter}',
'{shift} < > # & @ { } < ; > * {shift}',
'{accept} {alt} {space} {alt} {cancel}'
]
};
// Keyboard Language
// please update this section to match this language and email me with corrections!
// ***********************
if (typeof(language) === 'undefined') { var language = {}; };
language.hungarianansi = {
display : {
'a' : '\u2714:Accept (Shift-Enter)', // check mark - same action as accept
'accept' : 'Rendben:Accept (Shift-Enter)',
'alt' : 'AltGr:Alternate Graphemes',
'b' : '\u2190:Backspace', // Left arrow (same as ←)
'bksp' : 'T\u00f6r\u00f6l:Backspace',
'c' : '\u2716:Cancel (Esc)', // big X, close - same action as cancel
'cancel' : 'M\u00e9gsem:Cancel (Esc)',
'clear' : 'C:Clear', // clear num pad
'combo' : '\u00f6:Toggle Combo Keys',
'dec' : '.:Decimal', // decimal point for num pad (optional), change '.' to ',' for European format
'e' : '\u21b5:Enter', // down, then left arrow - enter symbol
'enter' : 'Enter:Enter',
'lock' : '\u21ea Lock:Caps Lock', // caps lock
's' : '\u21e7:Shift', // thick hollow up arrow
'shift' : 'Shift:Shift',
'sign' : '\u00b1:Change Sign', // +/- sign for num pad
'space' : ' :Space',
't' : '\u21e5:Tab', // right arrow to bar (used since this virtual keyboard works with one directional tabs)
'tab' : '\u21e5 Tab:Tab' // \u21b9 is the true tab symbol (left & right arrows)
},
// Message added to the key title while hovering, if the mousewheel plugin exists
wheelMessage : 'Haszn\u00e1ld az eg\u00e9r g\u00f6rget\u0151t a t\u00f6bbi billenty\u0171 \u00e1tv\u00e1lt\u00e1shoz',
};
// This will replace all default language options with these language options.
// it is separated out here so the layout demo will work properly.
$.extend(true, $.keyboard.defaultOptions, language.hungarianansi);