nyxt
nyxt copied to clipboard
vi mode: Can't unfocus text input on website
Describe the bug
Using vi
key bindings, when I focus a text input on a web page with Alt+i
, I'm directly in insert mode and can enter some text. But then I'm caught in this text input. How can I unfocus (without using the mouse)? Esc
brings me to normal mode but never out of the text input.
Precise recipe to reproduce the issue
config.lisp
:
(define-configuration buffer
((default-modes
(pushnew 'nyxt/mode/vi:vi-normal-mode %slot-value%))))
- Start Nyxt and open a web page that contains a text input.
- Focus text input with
Alt+i
. - Pressing
Esc
switches to normal mode. - Pressing
Esc
again has no effect.
There is a way to unfocus:
- When in normal mode: Press
i
to switch tovi-insert-mode
. -
C-z
to activatepassthrough-mode
-
Esc
to unfocus (will be passed to the document).
Seems cumbersome, but yes.
There must be a way we can make this work...!
A simple option is to use Tab to move focus to the next interactive element. But yeah, more elegant Nyxt-side solution won't hurt.