From 2aee03c7fbbb26703e2967e78cebb3f6bc94fde9 Mon Sep 17 00:00:00 2001 From: David Richardson Date: Tue, 13 Oct 2026 10:01:47 -0600 Subject: [PATCH] AppKit: Annotate macOS-only standard key bindings Record that the standard key binding table is not platform-aware. * CPKeyBinding: Add TODO noting that CPStandardKeyBindings applies macOS bindings on every platform. The modifier-key conflicts on Windows and Linux are now documented at the source. --- AppKit/CPKeyBinding.j | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/AppKit/CPKeyBinding.j b/AppKit/CPKeyBinding.j index 7c80685a9..51c234dc4 100644 --- a/AppKit/CPKeyBinding.j +++ b/AppKit/CPKeyBinding.j @@ -26,6 +26,12 @@ @import "CPEvent_Constants.j" @import "CPText.j" +// TODO: These are the macOS standard key bindings and are applied on every +// platform. "@" is always Command, and the Emacs-style Control bindings +// (^a, ^e, ^k, ^v, ^y, ...) and arrow/Home/End behaviour conflict with +// Windows and Linux conventions. Provide per-platform tables keyed off +// CPBrowserIsOperatingSystem, mapping the primary modifier through +// CPPlatformActionKeyMask. CPStandardKeyBindings = { @"@.": @"cancelOperation:",