feat: add ability to map lone <esc> (#475)
Since d2414f7580
<esc> resets key buffer
but this feature prevents binding lone <esc>
This commit is contained in:
parent
50dd374f77
commit
cf79726d21
2
ui.go
2
ui.go
@ -941,7 +941,7 @@ func (ui *ui) readNormalEvent(ev tcell.Event) expr {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
val := gKeyVal[tev.Key()]
|
val := gKeyVal[tev.Key()]
|
||||||
if val == "<esc>" {
|
if val == "<esc>" && string(ui.keyAcc) != "" {
|
||||||
ui.keyAcc = nil
|
ui.keyAcc = nil
|
||||||
ui.keyCount = nil
|
ui.keyCount = nil
|
||||||
ui.menuBuf = nil
|
ui.menuBuf = nil
|
||||||
|
Loading…
Reference in New Issue
Block a user