You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Menu disappears/won't appear on Release Notes focus #68335
When focus is on Release Notes, the menu disappears and the hotkey does not make it reappear.
I do not know why the menu must disappear or how much programming went into making it (not) work this way, but I would argue that it is better if you could use the menu while reading the release notes.
This has only been tested with regular files already open when the release notes appear.
This seems to be caused by the menubar ModifierKeyEmitter class listening for alt key presses using domEvent(document.body, 'keydown'). Our webview implementation has to re-dispatch all keyboard event, but it does so using the keybinding service. This means that the keydown event for alt key presses never triggers ModifierKeyEmitter.
The webview converts key presses into commands. The raw key presses themselves however are captured by the webview. I tried rebroadcasting the key press events using dispatchEvent but it didn’t work properly
using mnemonics in webviews works, alt focusing does not. as a workaround use alt+f to get to the menu or focus outside of the webview such as the sidebar or panel.
Activity
vscodebot commentedon Feb 9, 2019
(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:
4s7r0 commentedon Feb 9, 2019
Nope. But it's clear that the webview was programmed like it was an old school easter egg.
sbatten commentedon Feb 11, 2019
Matt Bierner (@mjbvz) Webviews are eating alt-key press
mjbvz commentedon Feb 13, 2019
This seems to be caused by the menubar
ModifierKeyEmitterclass listening for alt key presses usingdomEvent(document.body, 'keydown'). Our webview implementation has to re-dispatch all keyboard event, but it does so using the keybinding service. This means that the keydown event for alt key presses never triggersModifierKeyEmitter.Benjamin Pasero (@bpasero) or SteVen Batten (@sbatten) Any ideas on how we can workaround this?
sbatten commentedon Feb 13, 2019
Matt Bierner (@mjbvz) so only commands with keybindings will be received outside of the webview when one is focused?
mjbvz commentedon Feb 13, 2019
The webview converts key presses into commands. The raw key presses themselves however are captured by the webview. I tried rebroadcasting the key press events using dispatchEvent but it didn’t work properly
1 remaining item
sbatten commentedon Oct 9, 2019
using mnemonics in webviews works, alt focusing does not. as a workaround use alt+f to get to the menu or focus outside of the webview such as the sidebar or panel.