stop generating invalid keychords

This commit is contained in:
Kartik K. Agaram 2022-06-14 09:32:52 -07:00
parent 3f3dbcddde
commit 0bb297f14c
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@ Modifiers = {'lctrl', 'rctrl', 'lalt', 'ralt', 'lshift', 'rshift', 'lgui', 'rgui
function App.keypressed(key, scancode, isrepeat)
if array.find(Modifiers, key) then
-- do nothing when the modifier is pressed
return
end
-- include the modifier(s) when the non-modifer is pressed
App.keychord_pressed(App.combine_modifiers(key))