Skip to content

Commit b416242

Browse files
fix typos in keybindings
1 parent 7fcde83 commit b416242

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bpython/curtsiesfrontend/manual_readline.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ def beginning_of_line(cursor_offset, line):
3737
def end_of_line(cursor_offset, line):
3838
return len(line), line
3939

40-
@on('<Esc-f>')
40+
@on('<Esc+f>')
4141
@on('<Ctrl-RIGHT>')
4242
def forward_word(cursor_offset, line):
4343
patt = r"\S\s"
4444
match = re.search(patt, line[cursor_offset:]+' ')
4545
delta = match.end() - 1 if match else 0
4646
return (cursor_offset + delta, line)
4747

48-
@on('<Esc-b>')
48+
@on('<Esc+b>')
4949
@on('<Ctrl-LEFT>')
5050
def back_word(cursor_offset, line):
5151
return (last_word_pos(line[:cursor_offset]), line)
@@ -117,11 +117,11 @@ def transpose_word_before_cursor(cursor_offset, line):
117117
def delete_line(cursor_offset, line):
118118
return 0, ""
119119

120-
@on('<Esc-u>')
120+
@on('<Esc+u>')
121121
def uppercase_next_word(cursor_offset, line):
122122
return cursor_offset, line #TODO Not implemented
123123

124-
@on('<Esc-c>')
124+
@on('<Esc+c>')
125125
def titlecase_next_word(cursor_offset, line):
126126
return cursor_offset, line #TODO Not implemented
127127

0 commit comments

Comments
 (0)