diff options
author | cryzed <cryzed@googlemail.com> | 2018-04-29 15:22:52 +0200 |
---|---|---|
committer | cryzed <cryzed@googlemail.com> | 2018-04-29 15:22:52 +0200 |
commit | 801e9e0334dcc58cbe52b936951d93c1e3c1e3c7 (patch) | |
tree | 5c388d601fbbbd44537213a8cfc484ec9f486050 | |
parent | 92aedf84f57123a42b82d45ff5823abd56729754 (diff) | |
download | qutebrowser-801e9e0334dcc58cbe52b936951d93c1e3c1e3c7.tar.gz qutebrowser-801e9e0334dcc58cbe52b936951d93c1e3c1e3c7.zip |
qute-pass: Improve fake_key_raw()
-rwxr-xr-x | misc/userscripts/qute-pass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/userscripts/qute-pass b/misc/userscripts/qute-pass index fc897be07..892f9c5da 100755 --- a/misc/userscripts/qute-pass +++ b/misc/userscripts/qute-pass @@ -111,7 +111,9 @@ def dmenu(items, invocation, encoding): def fake_key_raw(text): for character in text: - qute_command('fake-key {}'.format(character)) + # Escape all characters by default, space requires special handling + sequence = '" "' if character == ' ' else '\{}'.format(character) + qute_command('fake-key {}'.format(sequence)) def main(arguments): |