diff options
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 |