Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add Ctrl-f and Ctrl-b emacs style keybindings for left and right motion
  • Loading branch information
RadicalZephyr committed Oct 26, 2019
commit 32cf0de2a6004d8ac3af7a01d7fa15b82ce11af2
4 changes: 2 additions & 2 deletions src/handlers/common_key_events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ pub fn up_event(key: Key) -> bool {

pub fn left_event(key: Key) -> bool {
match key {
Key::Left | Key::Char('h') => true,
Key::Left | Key::Char('h') | Key::Ctrl('b') => true,
_ => false,
}
}

pub fn right_event(key: Key) -> bool {
match key {
Key::Right | Key::Char('l') => true,
Key::Right | Key::Char('l') | Key::Ctrl('f') => true,
_ => false,
}
}
Expand Down