Skip to content

gh-125349: IDLE - fix: unexpected behavior caused by the input method #125352

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Xiaokang2022
Copy link
Contributor

@Xiaokang2022 Xiaokang2022 commented Oct 12, 2024

Prevent IDLE from exhibiting unexpected behavior by detecting and filtering events where event.keysym does not match event.char

@Xiaokang2022 Xiaokang2022 changed the title gh-125349: fix: unexpected behavior caused by the input method gh-125349: IDLE - fix: unexpected behavior caused by the input method Oct 12, 2024
@Xiaokang2022
Copy link
Contributor Author

@terryjreedy

Please review this PR.

@@ -0,0 +1 @@
Fixed unexpected behavior caused by the input method.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to be chinese, You should explain in detail in NEWS that the chinese input method is not correct.
Otherwise this will confuse the user because it doesn't know what language the input method is.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the moment, I'm not sure if this problem only occurs with Chinese input methods, and maybe with input methods in other languages. Because the root cause of the problem is not linguistic.

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

Successfully merging this pull request may close these issues.

2 participants