Skip to content

Some characters do not work in specific applications (Chromium based) #72

@jomag

Description

@jomag

I use a US layout keyboard, but often need to type Swedish characters (åäö), so I've added this to my hyprland config:

bind = SUPER, bracketleft, exec, wtype å
bind = SUPER_SHIFT, bracketleft, exec, wtype Å
bind = SUPER, apostrophe, exec, wtype ä
bind = SUPER_SHIFT, apostrophe, exec, wtype Ä
bind = SUPER, semicolon, exec, wtype ö 
bind = SUPER_SHIFT, semicolon, exec, wtype Ö

This works in almost every app, except those based on Chromium, including Electron apps such as Slack.

å and Å works even in Chromium apps.

I tried using wtype directly from the console:

sleep 3; wtype ö

... and then quickly switch focus to Slack. No input.

Then I changed to a longer sentence:

sleep 3; wtype "abc-å-ä-ö-def"

Strangely, this works for all characters!

Then I tried with both and . worked, but enter only the ä character for whatever reason!

So while I could not understand this behavior, it seems like using and could be a workaround. So I changed my Hyprland config - but now, when I type ä or ö I'm moved to workspace 1 instead!

I have two laptops. Both are up-to-date Arch + Hyprland. They share the same dotfiles and should be quite identical. On my second laptop, åäö works as expected in all apps!

Any ideas or explanations to this behavior?

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