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
In an electron app running on Linux (I tested Ubuntu and ArchLinux), the keybinding, ctrl+\, requires a second invocation for it to trigger the associated action. Please note, I'm referring to my application code's ctrl+\ keybinding not being invoked on the first key press, not any keybinding Monaco may have.
Specifically, if I have a HTML page in electron with a Monaco instance, if I click the instance to give it focus (such that I can type in it as an editor) I'm unable to trigger the ctrl+\ action without pressing ctrl+\ twice.
However, if I do not focus the Monaco instance, I am able to trigger ctrl+\ action with just one press.
Expected Behavior
The programmer should be able to unbind whatever binding Monaco has and Monaco should provide a way for allowing the host application to bind ctrl+\ without issue.
Once opened, click the Monaco instance in the middle of the page, tap ctrl+\ (or cmd+\ if on Mac) and notice nothing happens. Tap again, notice app goes fullscreen
Click outside the Monaco instance, anywhere else in the application window, and tap ctrl+\ (cmd+\) and repeat. Notice there is no need to tap a second time for the fullscreen action to trigger.
Click back on the Monaco instance and repeat the key press, notice the first press doesn't trigger the action
This discussion was converted from issue #3076 on March 03, 2023 13:25.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Code
No response
Actual Behavior
In an electron app running on Linux (I tested Ubuntu and ArchLinux), the keybinding,
ctrl+\
, requires a second invocation for it to trigger the associated action. Please note, I'm referring to my application code'sctrl+\
keybinding not being invoked on the first key press, not any keybinding Monaco may have.Specifically, if I have a HTML page in electron with a Monaco instance, if I click the instance to give it focus (such that I can type in it as an editor) I'm unable to trigger the
ctrl+\
action without pressingctrl+\
twice.However, if I do not focus the Monaco instance, I am able to trigger
ctrl+\
action with just one press.Expected Behavior
The programmer should be able to unbind whatever binding Monaco has and Monaco should provide a way for allowing the host application to bind
ctrl+\
without issue.Additional Context
Please find a complete reproduction of this issue here:
https://github.com/varun-dc/electron-react-boilerplate-monaco-mod-backslash-bug on the
bug-mod-backslash
branch.Steps,
npm i
and thennpm start
ctrl+\
(orcmd+\
if on Mac) and notice nothing happens. Tap again, notice app goes fullscreenctrl+\
(cmd+\
) and repeat. Notice there is no need to tap a second time for the fullscreen action to trigger.Beta Was this translation helpful? Give feedback.
All reactions