-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
When typing into Chromium or Electron apps, if a punctuation character happens to be the 14th unique character in the string, wtype fails to type correctly.
# Focus a text field in Chromium/Vivaldi/any Electron app, then run:
wtype "abcdefghijklm?XYZ" # 14 unique chars, ? is 14th
# Expected: abcdefghijklm?XYZ
# Actual: abcdefghijklXYZ (? interpreted as backspace, deletes 'm')
wtype "abcdefghijklmn?XYZ" # 15 unique chars, ? is 15th
# Expected: abcdefghijklmn?XYZ
# Actual: abcdefghijklmn?XYZ (works correctly)This seems to happen on specifically Chromium / electron apps (e.g. Vivaldi or Brave browser, Joplin, etc).
I think this might be related to keycode 22 being BackSpace in the standard evdev keymap:
If wtype assigns keycodes starting at 9, the 14th unique character would get keycode 22. Maybe Chromium is interpreting the raw keycode as BackSpace for certain characters despite the custom keymap?
Environment: Arch, Hyprland 0.52.1, wtype 0.4-2, Wayland 1.24.0
Metadata
Metadata
Assignees
Labels
No labels