wtype icon indicating copy to clipboard operation
wtype copied to clipboard

Chromium doesn't accept some characters

Open emersion opened this issue 3 years ago • 6 comments

Works: "🐸", "!", ":", "a". Doesn't work: "é", "α", "#".

No idea why.

Workaround: https://github.com/Plagman/gamescope/pull/267/commits/d09516ba70dfa8c0c3ea39587b443965d616bdba

emersion avatar Sep 22 '21 18:09 emersion

Yep. Even worse - it looks like it sometimes works and sometimes does not. I can get it to work in the address bar by running wtype α; wtype α, which types a single α. Does not seem to work in HTML text fields at all. I am guessing there is some issue in how keymap reloads are handled.

I remember attempting to read through the chromium input handling code last time it came up, but I just could not and gave up... Might either try later again or just implement the workaround.

atx avatar Sep 22 '21 19:09 atx

Someone on Mastodon pointed me to this comment: https://gitlab.gnome.org/World/Phosh/squeekboard/-/issues/244#note_1237206

Note, the URL bar empties itself when switching the keymap it seems. Other text fields don't.

emersion avatar Sep 22 '21 19:09 emersion

Okay, found a better workaround: https://github.com/Plagman/gamescope/commit/6764da38795a040e89bc66b544cf470fa52c5a4d

emersion avatar Sep 23 '21 08:09 emersion

@emersion It's not really obvious how to apply that workaround - does it work? If it does, could you apply it to the repo (any downsides)?

cizra avatar Mar 15 '22 10:03 cizra

I hit this problem as well and have a slightly different workaround. Instead of typing directly I put the emoji in the clipboard and then use ctrl+V to paste that ie: echo -n "😎" | wl-copy; wtype -M ctrl V -m ctrl

That has worked for me in terminals and in chrome (both in address bar and in text areas)

cjd avatar Apr 22 '24 09:04 cjd

Having an issue where wtype cannot type emojis into Discord or VSCode. This seems related? How can we apply the workaround?

dotaxis avatar Jul 14 '24 02:07 dotaxis