From 427acc420c6fce10fa77e603f7696f3e89d342d6 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Thu, 22 Oct 2026 01:43:35 +0000 Subject: feat(bundle): add platform-adaptive file, find and comment shortcuts New, Open, Save and Find are Monaco KeyMod.CtrlCmd bindings matched with StandardKeyboardEvent, so they use Cmd on macOS and Ctrl on Windows and Linux, exactly like the editor's own keybindings. Find also works from Input and Output by focusing the editor first. Toggle Line Comment comes from Monaco's comment contribution and the plugin's "//" lineComment. This replaces the Save handler that accepted Ctrl or Cmd with any other modifiers on every platform. Co-Authored-By: Claude Opus 5.5 --- bundle/src/editor.js | 1 + 1 file changed, 1 insertion(+) (limited to 'bundle/src/editor.js') diff --git a/bundle/src/editor.js b/bundle/src/editor.js index adfc90c..853fa82 100644 --- a/bundle/src/editor.js +++ b/bundle/src/editor.js @@ -1,6 +1,7 @@ import * as monaco from 'monaco-editor/editor/editor.api.js'; import 'monaco-editor/editor/browser/coreCommands.js'; import 'monaco-editor/editor/contrib/clipboard/browser/clipboard.js'; +import 'monaco-editor/editor/contrib/comment/browser/comment.js'; import 'monaco-editor/editor/contrib/contextmenu/browser/contextmenu.js'; import 'monaco-editor/editor/contrib/format/browser/formatActions.js'; import 'monaco-editor/editor/contrib/bracketMatching/browser/bracketMatching.js'; -- cgit v1.3.1-4-g156e