1
0
mirror of https://github.com/makew0rld/amfora.git synced 2024-06-15 19:15:24 +00:00

Fix Bookmarks modal not closing on ESC (#173)

This commit is contained in:
Peter Steinberg 2021-02-04 22:30:32 +00:00 committed by GitHub
parent d884e1d161
commit 972cb366a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -61,6 +61,8 @@ func bkmkInit() {
bkmkCh <- -1
case "Cancel":
bkmkCh <- 0
case "":
bkmkCh <- 0
}
})
}

View File

@ -12,7 +12,8 @@ import (
var helpCells = strings.TrimSpace(`
?|Bring up this help. You can scroll!
Esc, Enter|Leave the help
Enter|Close this help page
Esc|Close this help page or any active modal popups
Arrow keys, h/j/k/l|Scroll and move a page.
%s|Go up a page in document
%s|Go down a page in document