Remove ctrl+a from default keybindings and fix esc

This commit is contained in:
Tulir Asokan
2022-03-06 22:44:02 +02:00
parent 686f7025cb
commit daf0067d53
3 changed files with 8 additions and 4 deletions

View File

@ -226,6 +226,10 @@ func parseKeybindings(input map[string]string) (output map[Keybind]string) {
if err != nil {
panic(fmt.Errorf("failed to parse keybinding %s -> %s: %w", shortcut, action, err))
}
// TODO find out if other keys are parsed incorrectly like this
if key == tcell.KeyEscape {
ch = 0
}
parsedShortcut := Keybind{
Mod: mod,
Key: key,

View File

@ -5,7 +5,6 @@ main:
'Ctrl+Home': scroll_up
'Ctrl+End': scroll_down
'Ctrl+Enter': add_newline
'Ctrl+a': next_active_room
'Ctrl+l': show_bare
'Alt+Down': next_room
'Alt+Up': prev_room