aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGravatar Mason Larobina <mason.larobina@gmail.com>2009-09-19 20:12:46 +0800
committerGravatar Mason Larobina <mason.larobina@gmail.com>2009-09-19 20:12:46 +0800
commitaa2c224e5742730539cf6a27b3455b308842e95c (patch)
tree07a46cc987501d7e34fca2c39b114a343827f46d /examples
parentafe6eea69f73a8af2880389c2639afd690989450 (diff)
Fixed keycmd modification.
Diffstat (limited to 'examples')
-rw-r--r--examples/data/uzbl/scripts/plugins/keycmd.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/examples/data/uzbl/scripts/plugins/keycmd.py b/examples/data/uzbl/scripts/plugins/keycmd.py
index e263e9d..6377905 100644
--- a/examples/data/uzbl/scripts/plugins/keycmd.py
+++ b/examples/data/uzbl/scripts/plugins/keycmd.py
@@ -195,8 +195,10 @@ def key_press(uzbl, key):
else:
cmdmod = True
- elif not k.modcmd and key == 'Return' and k.cmd or k.held:
- uzbl.event('KEYCMD_EXEC', k)
+ elif not k.modcmd and key == 'Return':
+ if k.cmd:
+ uzbl.event('KEYCMD_EXEC', k)
+
clear_keycmd(uzbl)
elif not k.held and not k.cmd and len(key) > 1:
@@ -247,6 +249,9 @@ def key_release(uzbl, key):
if key in ['Shift', 'Tab'] and 'Shift-Tab' in k.held:
key = 'Shift-Tab'
+ elif key in ['Shift', 'Alt'] and 'Meta' in k.held:
+ key = 'Meta'
+
if key in k.held:
if k.modcmd:
uzbl.event('MODCMD_EXEC', k)