Verified Commit 8e575de5 authored by Célestin Matte's avatar Célestin Matte Committed by mathieui

Fix broken CTRL+arrow key shortcuts under some terms

parent cf04e659
......@@ -66,6 +66,9 @@ def get_char_list(s):
if key == '^[':
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:
except ValueError: # invalid input
......@@ -43,6 +43,8 @@ class Input(Win):
'^D': self.key_dc,
'M-b': self.jump_word_left,
"M-[1;5D": self.jump_word_left,
"kRIT5": self.jump_word_right,
"kLFT5": self.jump_word_left,
'^W': self.delete_word,
'M-d': self.delete_next_word,
'^K': self.delete_end_of_line,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment