mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
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:
parent
a8f31665fc
commit
833ad6889e
@ -505,7 +505,7 @@ fn initialize_keymap() -> HashMap<i32, Event> {
|
|||||||
|
|
||||||
// Then add some dynamic ones
|
// Then add some dynamic ones
|
||||||
|
|
||||||
for c in 1..26 {
|
for c in 1..=26 {
|
||||||
let event = match c {
|
let event = match c {
|
||||||
// This is Ctrl+C
|
// This is Ctrl+C
|
||||||
// TODO: Don't exit here, but add this as a default callback
|
// TODO: Don't exit here, but add this as a default callback
|
||||||
|
Loading…
Reference in New Issue
Block a user