Skip to content

ev.which is readonly and hence should not be assigned during normalization. #509

@fa93hws

Description

@fa93hws

https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/which
image

e.which = e.keyCode;

            if (typeof e.which !== 'number') {
                e.which = e.keyCode;
            }

should becomes something like

const charCode = (typeof e.which == "number") ? e.which : e.keyCode;

and charCode should be passed to methods later instead of using e.which everywhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions