Make arrow keys and page up/down work in insert mode
This commit is contained in:
parent
c5a2fd5da3
commit
1c25852021
1 changed files with 6 additions and 0 deletions
|
@ -321,6 +321,12 @@ impl Default for Keymaps {
|
||||||
key!(Delete) => Command::delete_char_forward,
|
key!(Delete) => Command::delete_char_forward,
|
||||||
key!(Enter) => Command::insert_newline,
|
key!(Enter) => Command::insert_newline,
|
||||||
key!(Tab) => Command::insert_tab,
|
key!(Tab) => Command::insert_tab,
|
||||||
|
key!(Left) => Command::move_char_left,
|
||||||
|
key!(Down) => Command::move_line_down,
|
||||||
|
key!(Up) => Command::move_line_up,
|
||||||
|
key!(Right) => Command::move_char_right,
|
||||||
|
key!(PageUp) => Command::page_up,
|
||||||
|
key!(PageDown) => Command::page_down,
|
||||||
ctrl!('x') => Command::completion,
|
ctrl!('x') => Command::completion,
|
||||||
ctrl!('w') => Command::delete_word_backward,
|
ctrl!('w') => Command::delete_word_backward,
|
||||||
)),
|
)),
|
||||||
|
|
Loading…
Reference in a new issue