From 4fef96e48eb0c2421fb86da9ee90c29b57ff05ef Mon Sep 17 00:00:00 2001 From: Luis Ferro Date: Tue, 12 Nov 2019 11:17:59 +0100 Subject: Change the quit key to q --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 4426a93..06fcd0f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -95,12 +95,12 @@ fn main() { // get input and execute it match window.getch() { - Some(Input::Character('h')) => { window.addstr("DEL: quit\n"); }, + Some(Input::Character('h')) => { window.addstr("q: quit\n"); }, // Some(Input::KeyDown) => { window.addstr("down\n"); }, // Some(Input::KeyUp) => { window.addch('b'); }, // Some(Input::KeyLeft) => { window.addch('c'); }, // Some(Input::KeyRight) => { window.addch('d'); }, - Some(Input::KeyDC) => break, + Some(Input::Character('q')) => break, Some(_) => (), None => (), } -- cgit v1.2.3