Rig up terminal keybinding group
This commit is contained in:
parent
4130956b4c
commit
6d01332b55
2 changed files with 3 additions and 0 deletions
|
@ -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}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue