• Preparing search index...
  • The search index is not available
Theia TypeDoc
  • Theia TypeDoc
  • core
  • core
  • toKey

Function toKey

  • toKey(event, dispatch?): Key
  • Determine the pressed key of a keyboard event. This key should correspond to the physical key according to a standard US keyboard layout. International keyboard layouts are handled by KeyboardLayoutService.

    keyIdentifier is used to access this deprecated field: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyIdentifier

    Parameters

    • event: KeyboardEvent
    • dispatch: "code" | "keyCode" = 'code'

    Returns Key

    • Defined in packages/core/src/common/keys.ts:349

Settings

Member Visibility

Theme

Theia TypeDoc
  • Loading...