Skip to content

Incompatible event modifiers on keypress between 2.2.2 and 2.2.1 #5146

@m-schier

Description

@m-schier

From version 2.2.2 to 2.2.1 it appears the logic for handling keypress events with a key-modifier and the prevent-modifier has changed.

In 2.2.1 an 'keypress.enter.prevent' would only prevent default action for the enter key, but in 2.2.2 it prevents every key.

I expected the behaviour to stay consistent with both releases, unless this change is intended.

Compare
2.2.1: https://jsfiddle.net/p4ay5v9c/2/
2.2.2: https://jsfiddle.net/z17jjxh6/1/

From my understanding the changelog for 2.2.2 does not list this change, so I reckon it is not intentional.

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