Don't forward keypresses when URL box is active
This fixes a bug where pressing return after entering a new URL would forward the ENTER key to the DOM and sometimes trigger the focussed result in a Google search.
This commit is contained in:
parent
ad64b4f0a3
commit
d6406ac734
|
@ -73,7 +73,9 @@ func handleUserKeyPress(ev *tcell.EventKey) {
|
|||
if (ev.Key() == 9 && ev.Modifiers() == 0) {
|
||||
nextTab()
|
||||
}
|
||||
if !urlInputBox.isActive {
|
||||
forwardKeyPress(ev)
|
||||
}
|
||||
if activeInputBox != nil {
|
||||
handleInputBoxInput(ev)
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue