wtype
wtype copied to clipboard
Chromium doesn't accept some characters
Works: "🐸", "!", ":", "a". Doesn't work: "é", "α", "#".
No idea why.
Workaround: https://github.com/Plagman/gamescope/pull/267/commits/d09516ba70dfa8c0c3ea39587b443965d616bdba
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.
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.
Okay, found a better workaround: https://github.com/Plagman/gamescope/commit/6764da38795a040e89bc66b544cf470fa52c5a4d
@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)?
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)
Having an issue where wtype cannot type emojis into Discord or VSCode. This seems related? How can we apply the workaround?