@@ -387,6 +387,9 @@ def createKeyLookup(self):
387
387
89 : 'Y' ,
388
388
90 : 'Z' ,
389
389
91 : 'Lwin' ,
390
+ 92 : 'Rwin' ,
391
+ 93 : 'App' ,
392
+ 95 : 'Sleep' ,
390
393
96 : 'Numpad0' ,
391
394
97 : 'Numpad1' ,
392
395
98 : 'Numpad2' ,
@@ -440,7 +443,8 @@ def createKeyLookup(self):
440
443
1005 : 'mouse wheel down' ,
441
444
1010 : 'Ctrl' , #merged hotkeys
442
445
1011 : 'Alt' ,
443
- 1012 : 'Shift' }
446
+ 1012 : 'Shift' ,
447
+ 1013 : 'Win' }
444
448
445
449
Key2ID = dict (map (lambda x ,y : (x ,y ),ID2Key .values (),ID2Key .keys ()))
446
450
@@ -482,25 +486,29 @@ def createMergeKeys(self):
482
486
164 1011 Alt (Lmenu)
483
487
165 1011 Alt (Rmenu)
484
488
160 1012 Shift (Lshift)
485
- 161 1012 Shift (Rshift)"""
489
+ 161 1012 Shift (Rshift)
490
+ 91 1013 Win (Lwin)
491
+ 92 1013 Win (Rwin)"""
486
492
487
493
KeyID2MEID = {162 :1010 ,
488
494
163 :1010 ,
489
495
164 :1011 ,
490
496
165 :1011 ,
491
497
160 :1012 ,
492
- 161 :1012 }
498
+ 161 :1012 ,
499
+ 91 :1013 ,
500
+ 92 :1013 }
493
501
return KeyID2MEID
494
502
495
503
def getHotkeyListNoSingleNoModifiers (self ):
496
504
"""return a list of all hotkeys without single events and modifiers"""
497
505
TempID2Key = self .ID2Key .copy ()
498
506
499
507
#get rid of single events and modifiers
500
- getRid = [160 ,161 ,162 ,163 ,164 ,165 ,1000 ,1004 ,1005 ,1010 ,1011 ,1012 ]
508
+ getRid = [91 , 92 , 160 ,161 ,162 ,163 ,164 ,165 ,1000 ,1004 ,1005 ,1010 ,1011 ,1012 , 1013 ]
501
509
502
510
#get rid of Lwin and oems
503
- moreRid = [91 , 186 ,187 ,188 ,189 ,190 ,191 ,192 ,219 ,220 ,221 ,222 ]
511
+ moreRid = [186 ,187 ,188 ,189 ,190 ,191 ,192 ,219 ,220 ,221 ,222 ]
504
512
505
513
for item in moreRid :
506
514
getRid .append (item )
0 commit comments