Repository navigation
Make hover actions keyboard accessible - #95712
Conversation
|
This doesn't actually work yet, need to hook up the activation handler. |
This commit hides the hover before the code actions menu is shown, if we don't do this the order that the editor's mouseleave event fires is different and it ends up closing both. This happens only when activating via the enter key.
|
Pine (@octref) ready for review |
51682c4 to
0fe16a0
Compare
|
LGTM, do you want to add it to release note? Preferably also adding that you need to click hover widget to tab into it. |
It is if you're in screen reader mode. Isidor Nikolic (@isidorn) do you think we should change that behave such that show hover always focuses the hover? |
|
Daniel Imms (@Tyriar) we already do that, if screen reader mode is on show hover focuses the hover vscode/src/vs/editor/contrib/hover/hover.ts Line 257 in 04f1f90 |
|
Isidor Nikolic (@isidorn) right now they're not keyboard accessible (via the hover) unless you're in accessibility mode. The question is whether it should focus it regardless of accessibility mode if you trigger the hover via the command? |
|
Daniel Imms (@Tyriar) not sure. |
|
I guess let's keep it as is for now since it would break the case where you're typing and want to view the hover, plus the actions are available via commands/other keybindings. |
Fixes #95702
This lets you focus the actions via tab and they are correctly marked as role=button