Skip to content

[v13.0.0-beta.0] KeyCodes encoding #9730

@microbit-robert

Description

@microbit-robert

Check for duplicates

  • I have searched for similar issues before opening a new one.

Description

The current key codes do not produce the expected result from run through String.fromCharCode:

E.g.:

export enum KeyCodes {
...
SLASH = 191,
...
}

Output ('/' expected):

String.fromCharCode(191);
'¿'

In the keyboard navigation plugin, keyNames was an object and the shortcut keys were surfaced by look ups on this object.

Reproduction steps

Priority

No response

Stack trace

Screenshots

Image

Browsers

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bugDescribes why the code or behaviour is wrongissue: triageIssues awaiting triage by a Blockly team member

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions