diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2023-06-05 22:37:26 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2023-06-05 22:37:26 -0700 |
commit | 64c4015167618675b556c369fd9f576408858a06 (patch) | |
tree | 67fdc5495f7d44db780b3c9be598234fc7a65959 /keychord.lua | |
parent | bf2c2555d662865b94256e6e854acc0715fda6d1 (diff) | |
parent | f1981e85db8cc349dc1e4cfa4cddb6e83ae2ad17 (diff) | |
download | text.love-64c4015167618675b556c369fd9f576408858a06.tar.gz |
Merge lines.love
Diffstat (limited to 'keychord.lua')
-rw-r--r-- | keychord.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/keychord.lua b/keychord.lua index 3b43519..16fa48d 100644 --- a/keychord.lua +++ b/keychord.lua @@ -34,19 +34,19 @@ function App.any_modifier_down() end function App.ctrl_down() - return App.modifier_down('lctrl') or App.modifier_down('rctrl') + return App.key_down('lctrl') or App.key_down('rctrl') end function App.alt_down() - return App.modifier_down('lalt') or App.modifier_down('ralt') + return App.key_down('lalt') or App.key_down('ralt') end function App.shift_down() - return App.modifier_down('lshift') or App.modifier_down('rshift') + return App.key_down('lshift') or App.key_down('rshift') end function App.cmd_down() - return App.modifier_down('lgui') or App.modifier_down('rgui') + return App.key_down('lgui') or App.key_down('rgui') end function App.is_cursor_movement(key) |