diff options
Diffstat (limited to 'keychord.lua')
-rw-r--r-- | keychord.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/keychord.lua b/keychord.lua index 1eb42e9..cc01241 100644 --- a/keychord.lua +++ b/keychord.lua @@ -49,6 +49,10 @@ function App.cmd_down() return App.modifier_down('lgui') or App.modifier_down('rgui') end +function App.is_cursor_movement(key) + return array.find({'left', 'right', 'up', 'down', 'home', 'end', 'pageup', 'pagedown'}, key) +end + array = {} function array.find(arr, elem) |