diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-06-14 09:32:52 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-06-14 09:32:52 -0700 |
commit | 0bb297f14c7f858771890f597c92997159a76287 (patch) | |
tree | 4e790d6d0c23585c43cd29814c6832f70cbd0ecf | |
parent | 3f3dbcddde751e06c2f7b79358b3280bc2452bc5 (diff) | |
download | view.love-0bb297f14c7f858771890f597c92997159a76287.tar.gz |
stop generating invalid keychords
-rw-r--r-- | keychord.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/keychord.lua b/keychord.lua index 31db16d..1eb42e9 100644 --- a/keychord.lua +++ b/keychord.lua @@ -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)) |