1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# Keyboard chars proximity
def getKeyboardMap (sKeyboard):
return _dKeyboardMap.get(sKeyboard.lower(), {})
def getKeyboardList ():
return _dKeyboardMap.keys()
# bépo, colemak and dvorak users are assumed to do less typing errors.
_dKeyboardMap = {
"azerty": {
# fr
# line 1
"é": "az",
"è": "yu",
"ç": "àio",
"à": "op",
|
<
>
>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# Keyboard chars proximity
def getKeyboardMap (sKeyboard):
return _dKeyboardMap.get(sKeyboard.lower(), {})
def getKeyboardList ():
return _dKeyboardMap.keys()
_dKeyboardMap = {
# keyboards by alphabetical order
# bépo, colemak and dvorak users are assumed to do less typing errors.
"azerty": {
# fr
# line 1
"é": "az",
"è": "yu",
"ç": "àio",
"à": "op",
|