Protected OptionalcurrentProtected OptionalcurrentProtected OptionalcurrentThe provider's original layout data used to verify characters produced by key events.
ProtectedkeyboardProtected Optional ReadonlykeyProtected ReadonlylayoutProtected ReadonlylayoutProtectedaddRegister VS Code-compatible US-position fallbacks for Latin letters that the layout does not produce on its base or Shift layer. This is called once whenever the active keyboard layout is transformed.
Detect the keyboard-layout modifier layer that produced an input character.
undefined means either that no layout modifiers were needed or that the input represents a dead key.
Return the character shown on the user's keyboard for the given key. Use this to determine UI representations of keybindings.
Return all command- and layout-modifier interpretations of a normalized keyboard input. The committed character follows the detected layout layer, so Caps Lock does not change the case of the character.
Return the Latin letter registered for a physical key because the active layout does not produce it, or undefined.
ProtectedgetProtectedgetmacOS has no AltGraph key: Option selects the layout's AltGraph layer but is also the alt command modifier used by
the default macOS bindings. Option layers therefore yield interpretations that keep Option as a command modifier and
carry the character the key produces without Option, followed by the interpretation that attributes Option to the layout.
ProtectedgetProtectedgetProtectedisWhether the platform's AltGraph layer is active: AltGraph on Linux, Option on macOS, and AltGraph or Ctrl+Alt on Windows.
ProtectedlayerReturn the character committed by the detected layout layer, which can differ from the input by case, e.g. because
Caps Lock inverted the case of the produced character. Returns undefined when the layer character is unknown.
ProtectedlayoutResolve an authored keybinding stroke against the active layout.
Physical and non-printable strokes, and strokes resolved without an active layout, are returned unchanged. Latin letters
missing from the active layout resolve to their US key position; any other missing logical character is returned with
KeyCode.supportedByLayout set to false. Authored Shift is absorbed when it produces the character (US-key tokens
or shift-layer candidates); otherwise it remains a command modifier.
ProtectedshiftInterpret Shift either as a command modifier or as part of the keyboard layout.
ProtectedshouldProtectedtoProtectedtransformProtectedupdateCalled when a KeyboardEvent is processed by the KeybindingRegistry. The KeyValidator may trigger a keyboard layout change.
The transformed layout used for logical-character resolution and display.