Use user's configured ex key

This commit is contained in:
Drew DeVault 2019-03-21 17:40:19 -04:00
parent f5bf4a9324
commit 4130956b4c
1 changed files with 3 additions and 1 deletions

View File

@ -148,7 +148,9 @@ func (aerc *Aerc) Event(event tcell.Event) bool {
} }
if !incomplete { if !incomplete {
aerc.pendingKeys = []config.KeyStroke{} aerc.pendingKeys = []config.KeyStroke{}
if event.Rune() == ':' { if event.Key() == bindings.ExKey.Key &&
event.Rune() == bindings.ExKey.Rune {
aerc.BeginExCommand() aerc.BeginExCommand()
return true return true
} }