Skip to content

Commit d58efc9

Browse files
committed
Add Ctrl/Cmd+S keybinding to save example action
The 'Save example' editor action now supports the Ctrl+S (or Cmd+S) keyboard shortcut for improved usability.
1 parent d4b63db commit d58efc9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

client.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3796,6 +3796,7 @@ const editorOnMount: OnMount = (editor, monaco) => {
37963796
editor.addAction({
37973797
id: "fluent-save-example",
37983798
label: "Save example",
3799+
keybindings: [monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyS],
37993800

38003801
run: function (editor) {
38013802
const code = editor.getModel()?.getValue() ?? "";

0 commit comments

Comments
 (0)