diff options
author | keis <keijser@gmail.com> | 2011-03-11 22:41:55 +0100 |
---|---|---|
committer | Brendan Taylor <whateley@gmail.com> | 2011-04-18 20:23:42 -0600 |
commit | 06c8a781c660b573ac64eb40cace7aa81add3312 (patch) | |
tree | 2a1d4d064101fb09f42c5daad3164f11f0547ca9 /examples | |
parent | 891786d26677ba535d454839e40b0660636b7039 (diff) |
use splitquoted to parse key event
Diffstat (limited to 'examples')
-rw-r--r-- | examples/data/plugins/keycmd.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/examples/data/plugins/keycmd.py b/examples/data/plugins/keycmd.py index 8c5b458..5e3776f 100644 --- a/examples/data/plugins/keycmd.py +++ b/examples/data/plugins/keycmd.py @@ -217,12 +217,8 @@ def parse_key_event(uzbl, key): ''' Build a set from the modstate part of the event, and pass all keys through modmap ''' keylet = uzbl.keylet - # Get the modstate part of the event if present - if ' ' in key: - modstate, key = key.split(' ') - modstate = set(['<%s>' % keylet.modmap_key(k) for k in modstate.split('|')]) - else: - modstate = set() + modstate, key = splitquoted(key) + modstate = set(['<%s>' % keylet.modmap_key(k) for k in modstate.split('|')]) key = keylet.modmap_key(key) return modstate, key |