Made the "Frame Advance" hotkey work while the key is held

This commit is contained in:
skidau 2015-03-01 08:23:15 +11:00
parent a83d27b9c2
commit 099876782f

View File

@ -1404,7 +1404,11 @@ void CFrame::ParseHotkeys(wxKeyEvent &event)
unsigned int i = NUM_HOTKEYS; unsigned int i = NUM_HOTKEYS;
for (i = 0; i < NUM_HOTKEYS; i++) for (i = 0; i < NUM_HOTKEYS; i++)
{ {
if (IsHotkey(event, i)) bool held = false;
if (i == HK_FRAME_ADVANCE)
held = true;
if (IsHotkey(event, i, held))
{ {
int cmd = GetCmdForHotkey(i); int cmd = GetCmdForHotkey(i);
if (cmd >= 0) if (cmd >= 0)