From f090dd07d51455594d3453e501a02a072976c12e Mon Sep 17 00:00:00 2001 From: sebashwa Date: Mon, 23 May 2022 09:39:20 +0200 Subject: [PATCH] Allow input navigation with and --- src/components/utils/input.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/utils/input.rs b/src/components/utils/input.rs index e3f89c1..8bcbacc 100644 --- a/src/components/utils/input.rs +++ b/src/components/utils/input.rs @@ -81,7 +81,7 @@ impl Input { self.cursor_position -= compute_character_width(last_c); return (Some(key), true); } - Key::Right => { + Key::Right | Key::Ctrl('f') => { if self.cannot_go_right() { return (Some(key), false); } @@ -100,7 +100,7 @@ impl Input { self.cursor_position = self.value_width(); return (Some(key), true); } - Key::Left => { + Key::Left | Key::Ctrl('b') => { if self.cannot_go_left() { return (Some(key), false); }