-
Notifications
You must be signed in to change notification settings - Fork 142
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
Web IDE 'File -> Save'/etc menu items suggest the wrong keybindings on macOS #90
Comments
Seems the keybindings are hardcoded in the webcrack/apps/playground/src/components/menu/Menu.tsx Lines 39 to 64 in f6df5f2
It might be cool if they were able to read from the same constant as the keybindings themselves, to ensure they remain in sync? webcrack/apps/playground/src/components/MonacoEditor.tsx Lines 109 to 127 in f6df5f2
Skimming the related docs:
It looks like you may not be able to read the keybindings 'back' from the return value of |
Doing it the same as vscode/monaco now: https://github.com/microsoft/vscode/blob/d40dff9ef9aacb8e5226bcf3938c71f4b9543120/src/vs/base/common/platform.ts#L109-L110 |
Looks good, thanks! :) |
Describe the bug
Was just checking out the web IDE again after the following landed:
And noticed that the 'File' menu says to use
Ctrl+S
to save (and other similar menu items):But this doesn't work on macOS, as the keybinding is actually
Cmd+S
:Ctrl
+S
doesn't trigger 'download the code' in web IDE as per the docs #81Expected Behaviour
It would be good if the suggested key bindings in the menu were able to update themselves based on the platform's bindings.
Code
Logs
See Also
The text was updated successfully, but these errors were encountered: