Skip to content

KeyboardListener keysPressed doesn't work with Properties from HotkeyData #1761

@jessegreenberg

Description

@jessegreenberg

Original comment from @samreid in phetsims/number-pairs#324 (comment).

Using keyStringProperties with KeyboardListener does not work fully because keysPressed still provides hard-coded key strings even if the mapped keys are changed for i18n or remapping. This means listeners cannot know the actual remapped key values. Scenery should provide a way to access the resolved Property-driven key values in the callback, such as via pressedKeyStringPropertiesProperty or an equivalent API.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions