summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/autofire
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/autofire')
-rw-r--r--plugins/autofire/autofire_menu.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/autofire/autofire_menu.lua b/plugins/autofire/autofire_menu.lua
index 1109bebe796..a880d1c5008 100644
--- a/plugins/autofire/autofire_menu.lua
+++ b/plugins/autofire/autofire_menu.lua
@@ -113,7 +113,7 @@ local function poll_for_hotkey()
input:seq_poll_start('switch')
local time = os.clock()
local clearmsg = true
- while (not input:seq_poll()) and (os.clock() < time + 1) do
+ while (not input:seq_poll()) and (input:seq_poll_modified() or (os.clock() < time + 1)) do
if input:seq_poll_modified() then
if not input:seq_poll_valid() then
manager:machine():popmessage(_("Invalid sequence entered"))