It's already possible to create a keyboard shortcut to trigger a hover popup window with keyboard.. But mouse is still required to scroll the windows.
Hmm interesting, I did not know that there is a shortcut to open hover :)
We never focus hover and any key press or mouse move will hide the hover.
@alexandrudima Moving this to you, let me know if I have to do anything.
{
"key": "alt+f1",
"command": "editor.action.showHover",
"when": "editorTextFocus"
},
Press alt+f1 and notice that the hover is focused.. or at least no key press hide it. But you still can't scroll the content inside.
VSCode 1.31.1
In 1.31, the action editor.action.showHover
focuses the hover.
In (the upcoming) 1.32, the action will not focus the hover.
This change came in via #66827 which tackles #10643
Ok, I see.. How about a new "editor.action.showHoverFocused" or something like that? And if focused, make it scrollable with keyboard.
@alexandrudima in 1.32 editor.action.showHover
doesn't automatically focus the hover but now it also doesn't close with Esc
anymore. Is there currently any way to set a key bind for this to happen without using the mouse?
@alexdreptu the default has been ctrl+k ctrl+i
since I have known about it, a year+. Focus has never been given to the pop-up.
@rbenson yes but you could close it using Esc
, now there is no way to close it without using the mouse.
Is their a workaround to scroll the hover tooltip without the mouse, currently?
Maybe there is a way to let it take more space, so the scrolling is not necessary in most cases?
I can't understand why this topic is abandoned.
Is it impossible or not necessary? hmm...
As a Keyboard shortcut addictive user, If this feature is added, It would be really enjoyable.
Maybe later my skill goes up, I should contribute.
Is there any progress on this?
Is there any progress on this?
Same problem here :(
@alexdima @akshaal @sandy081 ^^ any life or possibilities here?
It would be very nice (especially for vscodevim
users) if vscode
adds keyboard shortcut support API for scrolling up and down the content in the hover.
I also want this feature, tell me if I can help on something. For now I have configured my keyboard (ErgoDox) to simulate mouse wheel up and down, that's odd.
@papey
Could you share how you did it? Is it specific to your particular brand of keyboard (ErgoDox)?
The popup window is relative to the cursor location (where your current cursor is). When the popup shows up and the current cursor isn't inside the popup window, triggering wheel scroll will target the Editor main area (instead of the popup window), so it'll scroll the editor instead of the popup content. How did you overcome this?
I'm fine with any solution (it's better than having none anyway). Thank you!
@stemry83, Yes, i saw that too. Since it's a programmable keyboard, I've added shortcuts to control the mouse from keyboard (just for fun). So I can move
the mouse to the correct area and then press the mouse down keybinding. Was fun to test but clearly not usable :disappointed:.
I've never really understood the etiquette of '+1' on Github issues, but anyway: +1 I would like this implemented as well. Having a real hard time scrolling with mouse pad since mover the cursor a little too much when approaching the scrollbar exits the tooltip
Most helpful comment
Is there any progress on this?