about summary refs log tree commit diff stats
path: root/keychord.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-06-14 09:32:52 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-06-14 09:32:52 -0700
commit0bb297f14c7f858771890f597c92997159a76287 (patch)
tree4e790d6d0c23585c43cd29814c6832f70cbd0ecf /keychord.lua
parent3f3dbcddde751e06c2f7b79358b3280bc2452bc5 (diff)
downloadtext.love-0bb297f14c7f858771890f597c92997159a76287.tar.gz
stop generating invalid keychords
Diffstat (limited to 'keychord.lua')
-rw-r--r--keychord.lua1
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))