diff options
author | CĂ©lestin Matte <celestin.matte@gmail.com> | 2014-12-29 23:57:56 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2014-12-31 00:06:41 +0100 |
commit | 8e575de52c3c779fbc66c1d74aebb75522d072a0 (patch) | |
tree | 6f93a17c83f18a7ef0e39d431ad2198854e1a085 /src/keyboard.py | |
parent | cf04e65983a133d8d9164ebda80ea0a5e89f4378 (diff) | |
download | poezio-8e575de52c3c779fbc66c1d74aebb75522d072a0.tar.gz poezio-8e575de52c3c779fbc66c1d74aebb75522d072a0.tar.bz2 poezio-8e575de52c3c779fbc66c1d74aebb75522d072a0.tar.xz poezio-8e575de52c3c779fbc66c1d74aebb75522d072a0.zip |
Fix broken CTRL+arrow key shortcuts under some terms
Diffstat (limited to 'src/keyboard.py')
-rwxr-xr-x | src/keyboard.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/keyboard.py b/src/keyboard.py index ec1e7d0a..ccf9e752 100755 --- a/src/keyboard.py +++ b/src/keyboard.py @@ -66,6 +66,9 @@ def get_char_list(s): if key == '^[': try: part = s.get_wch() + if part == '[': + # CTRL+arrow and meta+arrow keys have a long format + part += s.get_wch() + s.get_wch() + s.get_wch() + s.get_wch() except curses.error: pass except ValueError: # invalid input |