fix(CountersSelector): 'q' shortcut last fixes

This commit is contained in:
Guillaume ARM 2024-05-23 22:34:46 +02:00
parent f45d979312
commit 642604da9d

View File

@ -235,6 +235,7 @@ local function CountersSelector(initialCountersMap, config)
elseif keyPressed == keys.enter then elseif keyPressed == keys.enter then
shouldContinue = false shouldContinue = false
elseif keyPressed == keys.q then elseif keyPressed == keys.q then
os.pullEvent('key_up') -- fix to avoid writing a 'q' in the terminal on exit
return nil return nil
end end
end end