瀏覽代碼

Fixed NumLock causing problems with action hotkeys.

Mark Sibly 8 年之前
父節點
當前提交
36f26d397e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      modules/mojox/action.monkey2

+ 2 - 2
modules/mojox/action.monkey2

@@ -188,9 +188,9 @@ Class Action
 				Local actions:=_hotKeys[event.Key]
 				If Not actions Return
 
-				Local mods:=event.Modifiers
+				Local mods:=event.Modifiers & (Modifier.Shift|Modifier.Alt|Modifier.Control|Modifier.Gui)
 				mods|=Cast<Modifier>( (Int(mods) & $541) Shl 1 | (Int(mods) & $a82) Shr 1 )
-
+				
 				For Local action:=Eachin actions
 					If event.Key<>action._hotKey Continue
 					If mods<>action._hotKeyMods Continue