Property DefaultKeyBindings
DefaultKeyBindings
Gets or sets the default key bindings for Application-level commands, optionally varying by platform. Each entry maps a Command to a PlatformKeyBinding that specifies the key strings for all platforms or specific ones.
Nested JSON Application.DefaultKeyBindings overlays this dictionary by command when
ApplyToStaticFacades() runs. Unmentioned commands keep these defaults.
To change a single binding and have the change take effect immediately, use
SetDefaultKeyBinding(Command, PlatformKeyBinding) or RemoveDefaultKeyBinding(Command)
instead of mutating the dictionary directly. Direct dictionary mutation
(e.g. DefaultKeyBindings [Command.Quit] = ...) does not raise
DefaultKeyBindingsChanged.
IMPORTANT: This is a process-wide static property. Change with care. Do not set in parallelizable unit tests.
public static Dictionary<Command, PlatformKeyBinding>? DefaultKeyBindings { get; set; }