Cell API
    Preparing search index...

    Function toKey

    • 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