From e3bf2d7d6a4e3be6870f9fb391e7d0947adbee28 Mon Sep 17 00:00:00 2001 From: dvkt Date: Thu, 26 Dec 2019 15:58:58 -0800 Subject: [PATCH] align text keys --- src/text.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/text.rs b/src/text.rs index a6eaae0..be651a9 100644 --- a/src/text.rs +++ b/src/text.rs @@ -32,11 +32,11 @@ impl View for Text { fn respond(&mut self, c: Key) -> Action { match c { - Key::Char('t') | Key::Char('g') => { + Key::Home => { self.scroll = 0; Action::Redraw } - Key::Char('b') | Key::Char('G') => { + Key::End => { if self.lines >= SCROLL_LINES { self.scroll = self.lines - SCROLL_LINES; Action::Redraw