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:
Thomas Buckley-Houston 2018-06-05 16:30:07 +08:00
parent ad64b4f0a3
commit d6406ac734

View file

@ -73,7 +73,9 @@ func handleUserKeyPress(ev *tcell.EventKey) {
if (ev.Key() == 9 && ev.Modifiers() == 0) {
nextTab()
}
forwardKeyPress(ev)
if !urlInputBox.isActive {
forwardKeyPress(ev)
}
if activeInputBox != nil {
handleInputBoxInput(ev)
} else {