forked from sparshag21/desktopography
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo1.js
49 lines (24 loc) · 786 Bytes
/
demo1.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
jQuery(function($) {
$('#text').keyboard({ layout: 'qwerty' });
$('.version').html( '(v' + $('#text').getkeyboard().version + ')' );
$('#qwerty-mod').keyboard({
lockInput: true, // prevent manual keyboard entry
layout: 'custom',
customLayout: {
'normal': [
'` 1 2 3 4 5 6 7 8 9 0 - = {bksp}',
'{tab} q w e r t y u i o p [ ] \\',
'a s d f g h j k l ; \' {enter}',
'{shift} z x c v b n m , . / {shift}',
'{accept} {space} {left} {right}'
],
'shift': [
'~ ! @ # $ % ^ & * ( ) _ + {bksp}',
'{tab} Q W E R T Y U I O P { } |',
'A S D F G H J K L : " {enter}',
'{shift} Z X C V B N M < > ? {shift}',
'{accept} {space} {left} {right}'
]
}
})
});