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
Handle ctrl+S in monaco editor #1033
Comments
To reproduce go to https://codelab.fun/angular/typescript/typescript-why-ts and hit ctrl+s |
Hey there, |
Hey @jatinAroraGit that's awesome, I'm not exactly sure what would be the best way to handle this. The global configuration is here:
The actual editor instantiation happens here: codelab/libs/code-demos/src/lib/multitab-editor/editor-from-model/editor-from-model.component.ts Line 41 in 57c7b13
Feel free to ping this thread if you're stuck at any point or with any other questions |
Hey @NothingEverHappens, |
How about if anything was changed, we can show a snack bar saying everything was saved successfully? |
Sounds good, @kirjs . |
While we run the code on every keystroke, lot of user still hit ctrl+S by instinct and get a file save dialog.
We should prevent the dialog from showing, and maybe show some little animation saying everything is saved (so that the user feels nice)
The text was updated successfully, but these errors were encountered: