about summary refs log tree commit diff stats
path: root/keychord.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-05-27 23:34:20 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-05-27 23:34:20 -0700
commitf4235a1741ef7927147d53adae1adf8584fdfe0d (patch)
tree0530aa1bb3db5a607ee1ef4427fdd13b35b2026f /keychord.lua
parent0fab1b499df3eb887786526b4c38827c2027a1e8 (diff)
downloadlines.love-f4235a1741ef7927147d53adae1adf8584fdfe0d.tar.gz
tweak modifier keys to include 'shift'
Diffstat (limited to 'keychord.lua')
-rw-r--r--keychord.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/keychord.lua b/keychord.lua
index 07e34cb..323c028 100644
--- a/keychord.lua
+++ b/keychord.lua
@@ -17,8 +17,11 @@ function App.combine_modifiers(key)
   if down('lalt') or down('ralt') then
     result = result..'M-'
   end
+  if down('lshift') or down('rshift') then
+    result = result..'S-'  -- don't try to use this with letters/digits
+  end
   if down('lgui') or down('rgui') then
-    result = result..'S-'
+    result = result..'s-'
   end
   result = result..key
   return result