editor: Also jump to ends of line with HOME and END

This commit is contained in:
Andrew Hamilton 2022-06-28 10:22:48 +10:00
parent 7138a3c08c
commit c049aeeee7

View file

@ -903,7 +903,8 @@ class TextEditor:
terminal.LEFT: cursor_left, terminal.CTRL_B: cursor_left, terminal.RIGHT: cursor_right,
terminal.CTRL_F: cursor_right, terminal.UP: cursor_up, terminal.CTRL_P: cursor_up,
terminal.DOWN: cursor_down, terminal.CTRL_N: cursor_down,
terminal.CTRL_A: jump_to_start_of_line, terminal.CTRL_E: jump_to_end_of_line,
terminal.CTRL_A: jump_to_start_of_line, terminal.HOME: jump_to_start_of_line,
terminal.CTRL_E: jump_to_end_of_line, terminal.END: jump_to_end_of_line,
terminal.CTRL_O: open_line, terminal.ENTER: enter, terminal.CTRL_SPACE: set_mark,
terminal.CTRL_G: drop_highlight, terminal.PAGE_DOWN: page_down, terminal.CTRL_V: page_down,
terminal.PAGE_UP: page_up, terminal.ALT_v: page_up, terminal.ALT_w: copy_selection,