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

Cannot input characters with dead keys #1041

Closed
manuel-rhdt opened this issue Jan 20, 2018 · 18 comments
Closed

Cannot input characters with dead keys #1041

manuel-rhdt opened this issue Jan 20, 2018 · 18 comments

Comments

@manuel-rhdt
Copy link

Which operating system does the issue occur on?
MacOS 10.13.2

I cannot input characters requiring dead keys (e.g. with US International layout ñ or é or even " ). After pressing the dead key nothing happens. The next character is just printed normal.

@gullevek
Copy link

gullevek commented Feb 7, 2018

Can confirm this on macOS 10.12.6 too

@EVODelavega
Copy link

I don't think this is OS related (FYI confirmed for OSX 10.13.3), I'll try on fedora later on. I suspect it's an issue there, too. I'll confirm after testing

@fabi1cazenave
Copy link

I confirm this on Ubuntu 16.04, too (using X11 with the Intel driver). Probably related to #148 and #1038.

@EVODelavega
Copy link

Oh forgot about this: confirmed on fedora 27, too (wayland, nouveau)

@gszr
Copy link

gszr commented Apr 25, 2018

Facing this on macOS 10.13.4 - ref 1b7ffea. Available to provide more info if needed.

@adrigzr
Copy link

adrigzr commented May 7, 2018

Same here. Any news on this one? Thanks!

@francesca64
Copy link
Contributor

@adrigzr yes.

I encourage anyone interested to try out https://github.com/francesca64/alacritty/tree/macos-kb. Relevant winit PR: rust-windowing/winit#518

@adrigzr
Copy link

adrigzr commented May 16, 2018

Thank you @francesca64, this is working for me.

To add more, its working the dead-key compose thing and the option+e+e combination. The later is not showing the yellow prefix when you type option+e, but at least is usable now.

@gszr
Copy link

gszr commented May 16, 2018

Thank you @francesca64; just tried out your branch and it works for the cases I've tested so far.

@chrisduerr
Copy link
Member

I was thinking about the best way to handle all the different issues that are solved by this, so we could close them all when they're done.

Then I saw you've compiled a list with all issues in rust-windowing/winit#518 @francesca64. That's just amazing!

@francesca64
Copy link
Contributor

@chrisduerr ah, thanks. I did that to make my PR look cooler.

I'll probably merge the PR tonight, and I want to cut another winit release in the next day or so.

@EVODelavega
Copy link

@francesca64 Thanks for looking into this one, but looking at the PR, am I right in thinking this will not fix the issues on linux with the US International (with dead keys)? E.g. to write é or even quote a string (like git commit -sm 'some message'), I hit the ' key + space to actually put the quote. If I want to get an é, I hit ' followed by e. The fixes seem to be focused around MacOS + all of the NeXT stuff

@francesca64
Copy link
Contributor

@EVODelavega you're not wrong, but did you try the branch anyway? I'd be quite surprised if that weren't fixed by rust-windowing/winit#451.

@EVODelavega
Copy link

@francesca64 Haven't tried it yet, I'll have a look this evening and let you know. Thanks

@EVODelavega
Copy link

@francesca64 Looks like that branch won't compile on Fedora. Probably because Fedora is using wayland, not X11. I'm getting the same errors on the hints.rs file (56 through 63), all basically look like this:

.cargo/git/checkouts/winit-610dc59f8cb53001/f1e450c/src/platform/linux/x11/util/hint.rs:56:13
   |
56 |             Desktop => b"_NET_WM_WINDOW_TYPE_DESKTOP\0",
   |             ^^^^^^^ help: consider using a reference: `&Desktop`

error[E0658]: non-reference pattern used to match a reference (see issue #42640)

@francesca64
Copy link
Contributor

francesca64 commented May 21, 2018

In Cargo.toml, change the glutin branch from macos-kb to winit-15 and then run cargo update. I accidentally broke the build on rustc<1.26.0, and it's fixed in a PR that isn't merged yet.

@EVODelavega
Copy link

EVODelavega commented May 21, 2018

@francesca64 Sorry, jumped the gun a little bit, used rustup to switch to nightly rustc (1.28), still had the same issue, but just quickly changed the hint.rs file to use references instead. Managed to compile with that, and everything is running peachy now. Dead keys are working mostly fine.

Edge cases like £ aren't working (ctrl+shift ua3), but I can live with that as a compromise for now.

Thanks to everyone who looked into this issue

@zerinoid
Copy link

@francesca64 what happened to the branch? really need it for ubuntu

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

No branches or pull requests

10 participants