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

macOS: unexpected characters get deleted when using backspace in Pinyin input method #1606

Open
VickyJin opened this issue Sep 29, 2018 · 13 comments

Comments

@VickyJin
Copy link

commented Sep 29, 2018

Which operating system does the issue occur on? macOS 10.13

When input Chinese characters, if I use backspace to remove some letters ( as part of the Pinyin structure), it will get the characters which are just before the cursor of alacritty deleted (not what I intend to do).
I have tested it with the input method in the gifs and macOS's default Pinyin input methods, and with the fresh installed alacritty on other people's maxOS (also 10.13), all reproduced the case.

gifs for different behaviors of alacritty and iTerm2.
alacritty
iterm2

@zhaozg

This comment has been minimized.

Copy link

commented Sep 29, 2018

Same on head

@chrisduerr

This comment has been minimized.

Copy link
Collaborator

commented Sep 29, 2018

Looks like the intended behavior is that while the popup is open, the backspace key should be ignored? Is that correct?

@VickyJin

This comment has been minimized.

Copy link
Author

commented Sep 30, 2018

@chrisduerr seems the common behavior (what I see from the UI) is: when input "ceshi" with Pinyin input method, there are actual letters (with underline) in the software's box (not only in the popup) waiting for further instructions. Notes/Paper/Browser/search bars of other softwares on macOS work like this. Haven't looked into the key events...

@chrisduerr

This comment has been minimized.

Copy link
Collaborator

commented Oct 2, 2018

This is related to #1613 and a solution to that issue would probably also solve this one.

@weihanglo

This comment has been minimized.

Copy link

commented Oct 17, 2018

Same here on macOS Mojave 10.14.

oct-17-2018 13-18-22

I would like to help resolving this issue. @chrisduerr Would you mind to shed some light on it?

@coderhwz

This comment has been minimized.

Copy link

commented Oct 17, 2018

Is there any solution ?

@chrisduerr

This comment has been minimized.

Copy link
Collaborator

commented Oct 17, 2018

@coderhwz If you want to see a solution to this issue, your best choice is to try and look into this yourself. I'm always happy to help you out if you're interested at resolving this problem.

However as long as an issue is still open, there is no solution. Rather than commenting, which sends a notification to everyone watching the repository, I'd recommend subscribing to the issue for updates.

@coderhwz

This comment has been minimized.

Copy link

commented Jan 26, 2019

I think winit should not capture delete events on the input method

@Double1996

This comment has been minimized.

Copy link

commented Feb 28, 2019

Is there any solution ?

so how to do ?

@lvht

This comment has been minimized.

Copy link

commented Jun 16, 2019

Is there any solution?

@imkundev

This comment has been minimized.

Copy link

commented Jun 21, 2019

Which operating system does the issue occur on? macOS 10.13

When input Chinese characters, if I use backspace to remove some letters ( as part of the Pinyin structure), it will get the characters which are just before the cursor of alacritty deleted (not what I intend to do).
I have tested it with the input method in the gifs and macOS's default Pinyin input methods, and with the fresh installed alacritty on other people's maxOS (also 10.13), all reproduced the case.

gifs for different behaviors of alacritty and iTerm2.
alacritty
iterm2

Hi,,When I input the chinese words. it's show messy code. like this <00e4><00bd><00a0>.How to Input the Chinese characters in alacritty?

@wangfenjin

This comment has been minimized.

Copy link

commented Aug 6, 2019

A workaround in macOS: hold command key when press backspace

@tyru

This comment has been minimized.

Copy link

commented Aug 11, 2019

This occurs also in japanese input method which is installed by default.
(I was typing en<Space> and ↑ and ↓ keys but alacritty was handling keys even while preediting)
Screencast 2019-08-12 04 03 21

Please ignore keys while preediting (generally called "over-the-spot" ? I don't know macOS API and input method well though).
https://docs.oracle.com/cd/E19455-01/806-2914/6jc3mhd4h/index.html

And this is off-topic though, I can't input any japanese characters #1101

I'm using:

$ brew cask ls --versions alacritty
alacritty 0.3.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
10 participants
You can’t perform that action at this time.