From 0bb297f14c7f858771890f597c92997159a76287 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 14 Jun 2022 09:32:52 -0700 Subject: stop generating invalid keychords --- keychord.lua | 1 + 1 file changed, 1 insertion(+) 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)) -- cgit 1.4.1-2-gfad0