Skip to content

imask breaks shortcut keys: Command+Z, Command+Shift+Z, etc. #1127

Description

@Stanislav-Tuzov

Describe the bug
The form control does not update when the user presses Command+Z (Ctrl+Z for Windows).

To Reproduce

  1. Go to stackblitz: https://stackblitz.com/edit/stackblitz-starters-18mqkgtc?file=src%2Fmain.ts

  2. Enter the mobile phone number into the first input (where imask is not used);

  3. Press the keyboard shortcut Command+Z (Ctrl+Z for Windows);
    Expected behavior == Сurrent behavior. successPhoneControl is updated.

  4. Enter the mobile phone number into the second input (where imask is used);

  5. Press the keyboard shortcut Command+Z (Ctrl+Z for Windows).
    Expected behavior != Сurrent behavior. errorPhoneControl is not updated.

Expected behavior
The form control should be updated every time the user presses Command + Z.

Environment:

  • OS: iOS, Windows
  • Browser: chrome
  • Version: 136.0.7103.114 (x64)
  • IMask version: 7.6.1
  • Framework/plugin version if used: Angular 19.2.0

Additional context
Add any other context about the problem here.

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