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/AGENTS/DEVELOPMENT.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bundle/AGENTS') diff --git a/bundle/AGENTS/DEVELOPMENT.md b/bundle/AGENTS/DEVELOPMENT.md index 940a0dd..f87f0c0 100644 --- a/bundle/AGENTS/DEVELOPMENT.md +++ b/bundle/AGENTS/DEVELOPMENT.md @@ -30,4 +30,6 @@ The Rust runner launches the packaged compiler directly, using the source direct After building the compiler, run `cargo test --release --manifest-path src-tauri/Cargo.toml`. The two native tests exercise real compilation, prefilled input, EOF, Unicode, diagnostics, output before process exit, stopping, single-run exclusion and restart, including source paths with spaces. CI runs them on all three native platforms. +Keyboard shortcuts are Monaco `KeyMod.CtrlCmd` keybindings: the editor registers Find and Toggle Line Comment, and the document handler matches New, Open, Save and Find with `StandardKeyboardEvent.equals`. Never test `ctrlKey`/`metaKey` directly; Monaco resolves CtrlCmd to Cmd on macOS and Ctrl elsewhere. + Use brief English UI labels and messages. Keep the first version to one document and prefilled stdin. Before feature commits, run affected plugin tests, build the frontend and check native compilation as appropriate. Do not add a separate UI test framework for routine changes. -- cgit v1.3.1-4-g156e