Fix Event::CtrlChar('z') binding for ncurses backend (#427)

This patch fixes an off by one error where we don't handle ctrl-z
correctly.
This commit is contained in:
Daniel Xu 2020-02-19 14:26:09 -08:00 committed by GitHub
parent a8f31665fc
commit 833ad6889e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -505,7 +505,7 @@ fn initialize_keymap() -> HashMap<i32, Event> {
// Then add some dynamic ones
for c in 1..26 {
for c in 1..=26 {
let event = match c {
// This is Ctrl+C
// TODO: Don't exit here, but add this as a default callback