Advertisement
Guest User

Untitled

a guest
Mar 16th, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.03 KB | None | 0 0
  1. Index: binaries/data/mods/public/gui/session/hotkeys/misc.xml
  2. ===================================================================
  3. --- binaries/data/mods/public/gui/session/hotkeys/misc.xml  (revision 21567)
  4. +++ binaries/data/mods/public/gui/session/hotkeys/misc.xml  (working copy)
  5. @@ -80,7 +80,7 @@
  6.     </object>
  7.  
  8.     <object hotkey="session.stop">
  9. -       <action on="Press">stopUnits(g_Selection.toList());</action>
  10. +       <action on="Press">stopUnits(g_Selection.toList());warn("P");</action>
  11.     </object>
  12.  
  13.     <object hotkey="session.backtowork">
  14. Index: source/gui/CGUI.cpp
  15. ===================================================================
  16. --- source/gui/CGUI.cpp (revision 21567)
  17. +++ source/gui/CGUI.cpp (working copy)
  18. @@ -81,7 +81,8 @@
  19.                 HotkeyInputHandler(ev);
  20.                 ret = IN_HANDLED;
  21.  
  22. -               if (ev->ev.type == SDL_HOTKEYDOWN)
  23. +               std::cout<<ev->ev.key.repeat<< "\n";
  24. +               if (ev->ev.type == SDL_HOTKEYDOWN && !ev->ev.key.repeat)
  25.                     obj->SendEvent(GUIM_PRESSED, "press");
  26.                 else
  27.                     obj->SendEvent(GUIM_RELEASED, "release");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement