Skip to content

Commit 12034f6

Browse files
add alt-left and right
1 parent b416242 commit 12034f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bpython/curtsiesfrontend/manual_readline.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def end_of_line(cursor_offset, line):
3939

4040
@on('<Esc+f>')
4141
@on('<Ctrl-RIGHT>')
42+
@on('<Esc+RIGHT>')
4243
def forward_word(cursor_offset, line):
4344
patt = r"\S\s"
4445
match = re.search(patt, line[cursor_offset:]+' ')
@@ -47,6 +48,7 @@ def forward_word(cursor_offset, line):
4748

4849
@on('<Esc+b>')
4950
@on('<Ctrl-LEFT>')
51+
@on('<Esc+LEFT>')
5052
def back_word(cursor_offset, line):
5153
return (last_word_pos(line[:cursor_offset]), line)
5254

0 commit comments

Comments
 (0)