Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Letters shouldn't be able to be typed when ctrl is pressed #13

@lesleyrs

Description

@lesleyrs

I was confused for a bit cause I kept getting J's in chat, but it happens when closing dev console with ctrl-shift-j (I don't want to preventDefault this).

After checking how it works on java (225 deob and danes 317) it seems that you can't type letters if ctrl is pressed, e.code is correct but e.value changes with ctrl pressed.

Side note:

        if (CANVAS_PREVENTED.includes(key)) {
            // prevent canvas from using tab and other blacklisted keys. no function in 225?
            e.preventDefault();
        }

Were these keys blocked in 04? I agree that it's a good idea though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions