Sfoglia il codice sorgente

Fix: Win32 accel offset for keypad numbers (num0...) (#75)

Co-authored-by: Ronny Otto <>
Ronny Otto 1 anno fa
parent
commit
1a25ba5353
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      win32maxguiex.mod/win32maxguiex.bmx

+ 1 - 1
win32maxguiex.mod/win32maxguiex.bmx

@@ -2544,7 +2544,7 @@ Type TWindowsMenu Extends TGadget
 		ElseIf keycode>=KEY_F1 And keycode<=KEY_F12
 			m$="F"+(keycode+1-KEY_F1)
 		ElseIf keycode>=KEY_NUM0 And keycode<=KEY_NUM9
-			m$="Num "+(keycode+1-KEY_NUM0)
+			m$="Num "+(keycode-KEY_NUM0)
 		Else
 			Select keycode
 				Case KEY_BACKSPACE;m = pre+"Backspace"+suf