21
21
# fmt: off
22
22
KEY_NAME = (
23
23
'ESC' , '1' , '2' , '3' , '4' , '5' , '6' , '7' , '8' , '9' , '0' , '-' , '=' , 'BACKSPACE' ,
24
- 'CAPS' , ' TAB' , 'Q' , 'W' , 'E' , 'R' , 'T' , 'Y' , 'U' , 'I' , 'O' , 'P' , '[' , ']' , '|' ,
25
- 'A' , 'S' , 'D' , 'F' , 'G' , 'H' , 'J' , 'K' , 'L' , ';' , '"' , 'ENTER' ,
24
+ 'TAB' , 'Q' , 'W' , 'E' , 'R' , 'T' , 'Y' , 'U' , 'I' , 'O' , 'P' , '[' , ']' , '|' ,
25
+ 'CAPS' , ' A' , 'S' , 'D' , 'F' , 'G' , 'H' , 'J' , 'K' , 'L' , ';' , '"' , 'ENTER' ,
26
26
'LSHIFT' , 'Z' , 'X' , 'C' , 'V' , 'B' , 'N' , 'M' , ',' , '.' , '/' , 'RSHIFT' ,
27
27
'LCTRL' , 'LGUI' , 'LALT' , 'SPACE' , 'RALT' , 'MENU' , 'FN' , 'RCTRL'
28
28
)
@@ -48,15 +48,15 @@ def __init__(self, kbd):
48
48
self .suspend = kbd .matrix .suspend
49
49
50
50
def send (self , * names ):
51
- keycodes = tuple ( map (lambda n : get_action_code ( n ) , names ) )
51
+ keycodes = map (get_action_code , names )
52
52
self .kbd .send (* keycodes )
53
53
54
54
def press (self , * names ):
55
- keycodes = map (lambda n : get_action_code ( n ) , names )
55
+ keycodes = map (get_action_code , names )
56
56
self .kbd .press (* keycodes )
57
57
58
58
def release (self , * names ):
59
- keycodes = map (lambda n : get_action_code ( n ) , names )
59
+ keycodes = map (get_action_code , names )
60
60
self .kbd .release (* keycodes )
61
61
62
62
def send_text (self , text ):
0 commit comments