Rig up terminal keybinding group

This commit is contained in:
Drew DeVault 2019-03-21 17:44:44 -04:00
parent 4130956b4c
commit 6d01332b55
2 changed files with 3 additions and 0 deletions

View File

@ -154,6 +154,7 @@ func ParseBinding(input, output string) (*Binding, error) {
func init() {
keyNames = make(map[string]KeyStroke)
keyNames["space"] = KeyStroke{tcell.KeyRune, ' '}
keyNames["semicolon"] = KeyStroke{tcell.KeyRune, ';'}
keyNames["enter"] = KeyStroke{tcell.KeyEnter, 0}
keyNames["up"] = KeyStroke{tcell.KeyUp, 0}
keyNames["down"] = KeyStroke{tcell.KeyDown, 0}

View File

@ -98,6 +98,8 @@ func (aerc *Aerc) getBindings() *config.KeyBindings {
switch aerc.SelectedTab().(type) {
case *AccountView:
return aerc.conf.Bindings.MessageList
case *TermHost:
return aerc.conf.Bindings.Terminal
default:
return aerc.conf.Bindings.Global
}