Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chromium doesn't accept some characters #31

Open
emersion opened this issue Sep 22, 2021 · 6 comments
Open

Chromium doesn't accept some characters #31

emersion opened this issue Sep 22, 2021 · 6 comments

Comments

@emersion
Copy link
Contributor

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

No idea why.

Workaround: ValveSoftware/gamescope@d09516b

@atx
Copy link
Owner

atx commented Sep 22, 2021

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.

@emersion
Copy link
Contributor Author

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
Copy link
Contributor Author

Okay, found a better workaround: ValveSoftware/gamescope@6764da3

@cizra
Copy link

cizra commented Mar 15, 2022

@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)?

@cjd
Copy link

cjd commented Apr 22, 2024

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)

@dotaxis
Copy link

dotaxis commented Jul 14, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants