Rig up terminal keybinding group
This commit is contained in:
parent
4130956b4c
commit
6d01332b55
|
@ -154,6 +154,7 @@ func ParseBinding(input, output string) (*Binding, error) {
|
||||||
func init() {
|
func init() {
|
||||||
keyNames = make(map[string]KeyStroke)
|
keyNames = make(map[string]KeyStroke)
|
||||||
keyNames["space"] = KeyStroke{tcell.KeyRune, ' '}
|
keyNames["space"] = KeyStroke{tcell.KeyRune, ' '}
|
||||||
|
keyNames["semicolon"] = KeyStroke{tcell.KeyRune, ';'}
|
||||||
keyNames["enter"] = KeyStroke{tcell.KeyEnter, 0}
|
keyNames["enter"] = KeyStroke{tcell.KeyEnter, 0}
|
||||||
keyNames["up"] = KeyStroke{tcell.KeyUp, 0}
|
keyNames["up"] = KeyStroke{tcell.KeyUp, 0}
|
||||||
keyNames["down"] = KeyStroke{tcell.KeyDown, 0}
|
keyNames["down"] = KeyStroke{tcell.KeyDown, 0}
|
||||||
|
|
|
@ -98,6 +98,8 @@ func (aerc *Aerc) getBindings() *config.KeyBindings {
|
||||||
switch aerc.SelectedTab().(type) {
|
switch aerc.SelectedTab().(type) {
|
||||||
case *AccountView:
|
case *AccountView:
|
||||||
return aerc.conf.Bindings.MessageList
|
return aerc.conf.Bindings.MessageList
|
||||||
|
case *TermHost:
|
||||||
|
return aerc.conf.Bindings.Terminal
|
||||||
default:
|
default:
|
||||||
return aerc.conf.Bindings.Global
|
return aerc.conf.Bindings.Global
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue