Skip to content

EnglishStringToCodeMap

Overview

Maps the english key you want to use to the associated KeyboardEvent.codes for usage in listeners. If a key has multiple code values, listener behavior will fire if either are pressed.

@author Jesse Greenberg (PhET Interactive Simulations)

Type EnglishKey

import type { EnglishKey } from 'scenerystack/scenery';

keyof typeof EnglishStringToCodeMap

Type EnglishKeyString

import type { EnglishKeyString } from 'scenerystack/scenery';

${[EnglishKey](../scenery/EnglishStringToCodeMap.md#EnglishKey)}

Source Code

See the source for EnglishStringToCodeMap.ts in the scenery repository.