Skip to content

[Bug]: Undo shortcut (Ctrl+Z / Cmd+Z) does not work on German (QWERTZ) keyboard layout #59

Description

Description

The undo shortcut in drawing mode does not work when using a German (QWERTZ)
keyboard layout. The documented shortcut is Command-Z / Ctrl+Z, but on a German
keyboard I have to press Command-Y / Ctrl+Y to trigger undo.

On German keyboards, the Y and Z keys are swapped compared to the US (QWERTY)
layout. Pressing Ctrl+Y on a German keyboard corresponds to the physical key
position of Z on a US layout. This suggests ZoomIt matches the shortcut by
physical key code / scan code instead of the character produced by the active
keyboard layout.

Steps to reproduce

  1. Set the system keyboard layout to German (QWERTZ).
  2. Start ZoomIt and zoom in.
  3. Enter drawing mode (left mouse button) and draw something.
  4. Press Command-Z (or Ctrl+Z).

Expected behavior

The last drawing stroke is undone.

Actual behavior

Nothing happens. Pressing Command-Y (or Ctrl+Y) — the key at the physical
position of Z on a US layout — performs the undo instead.

Suggested fix

Resolve keyboard shortcuts based on the character produced by the currently
active keyboard layout rather than the physical key code, so that Z is Z on
every layout. The same issue likely affects other letter-based shortcuts
(e.g. E for erase) on layouts where letters are moved.

Environment

  • ZoomIt for Mac, version: 12.3
  • macOS version: 26.5.2
  • Keyboard layout: German (QWERTZ)

Current Behavior

Nothing happens. Pressing Command-Y (or Ctrl+Y) — the key at the physical
position of Z on a US layout — performs the undo instead.

Expected Behavior

The last drawing stroke is undone.

Steps to Reproduce

  1. Set the system keyboard layout to German (QWERTZ).
  2. Start ZoomIt and zoom in.
  3. Enter drawing mode (left mouse button) and draw something.
  4. Press Command-Z (or Ctrl+Z).

Product Version

12.3

macOS Version

26.5.2

Additional Context

Resolve keyboard shortcuts based on the character produced by the currently
active keyboard layout rather than the physical key code, so that Z is Z on
every layout. The same issue likely affects other letter-based shortcuts
(e.g. E for erase) on layouts where letters are moved.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions