DEADSOFTWARE

Console: Add support for repeated key binds
[d2df-sdl.git] / src / game / sdl2 / g_system.pas
index 8842b6794b7362b7cf4860c09abacbbaa0ca91f4..eec03232f7d26e99fd2619d39994ff5291b26257 100644 (file)
@@ -507,9 +507,11 @@ implementation
       e_KeyUpDown(key, down);
       g_Console_ProcessBind(key, down);
     end
-    else if gConsoleShow or gChatShow or (g_ActiveWindow <> nil) then
+    else
     begin
-      KeyPress(key) // key repeat in menus and shit
+      if g_dbg_input then
+        e_LogWritefln('Input Debug: keyrep, scancode=%s', [key]);
+      g_Console_ProcessBindRepeat(key);
     end
   end;