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
1 changed files with 5 additions and 1 deletions

View File

@ -1404,7 +1404,11 @@ void CFrame::ParseHotkeys(wxKeyEvent &event)
unsigned int i = NUM_HOTKEYS;
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);
if (cmd >= 0)