-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Firefox] Vimium shortcuts don't work after Ctrl-Enter in Gitlab diff viewer #2622
Comments
I don't want to add a spurious comment to your example page just to check, but perhaps it is similar to here on Github, where an input remains focused after a comment is submitted. Does |
It doesn't, as far as I can tell. |
(As a side note, I actually emailed Github about this keyboard accessibility problem once and got a response that they would take a look at it, but nothing has happened ;) ) |
BTW... I run my own instance of Gitlab and cannot reproduce this issue there. |
If memory serves, I suspect this is another manifestation of the Firefox focus bug: an element which is focused and becomes unfocusable doesn't get blurred. This causes a few problems:
I can't find the FF issue at the moment, I'll look again later. |
I fixed this bug in Saka Key by checking document.activeElement on every keydown event in text mode. Maybe you could try something similar? https://github.com/lusakasa/saka-key/blob/master/src/modes/text/client.js#L10 (Returning 'Reset' will cause the document.activeElement to be checked. If it is a text input, stay in text mode. If not, switch to command mode) |
VimFx also seems to work around this missing blur event: https://github.com/akhodakivskiy/VimFx/blob/376486f4dc61d75add1c26263d1f4baf39d3abd4/extension/lib/events-frame.coffee#L302-L311 |
I assume you mean "Don't let pages steal the focus on load". If so, no, that makes no difference either way. |
Using vimium 1.59.9, add a comment in the Gitlab diff viewer, e.g. here:
https://gitlab.com/inducer/comment-dumpster/commit/7a90f4b74f70afa6d83bcfc5214c600a6d50b208
To do so, log in and click on the little speech bubble to the left of a line in a diff. (I've created that project to demonstrate this issue, so feel free to litter it up with comments.)
Hit Ctrl-Enter to submit your diff comment. Notice that none of the vimium shortcuts work any more.
The text was updated successfully, but these errors were encountered: