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

apprt/gtk: ibus activation should not encode keys #5310

Merged
merged 1 commit into from
Jan 23, 2025
Merged

Conversation

mitchellh
Copy link
Contributor

@mitchellh mitchellh commented Jan 23, 2025

Related to #3567

This cleans up our handling of when GTK tells us the input method handled the key press to address more scenarios we should not encode the key event. The comments in this diff should explain clearly.

Reproduction is simple:

  1. Use ibus (X11 or Wayland doesn't matter)
  2. Press super+. to activate the emoji keyboard
  3. Notice the . is written to the shell AND the emoji keyboard is activated.

The bug is that . should not be encoded since it was used to activate the emoji keyboard. This PR fixes that.

This cleans up our handling of when GTK tells us the input method
handled the key press to address more scenarios we should not encode the
key event. The comments in this diff should explain clearly.
@mitchellh mitchellh enabled auto-merge January 23, 2025 04:24
@mitchellh mitchellh merged commit eb21a58 into main Jan 23, 2025
59 checks passed
@mitchellh mitchellh deleted the push-zytmxlpqkuww branch January 23, 2025 04:32
@github-actions github-actions bot added this to the 1.1.0 milestone Jan 23, 2025
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

Successfully merging this pull request may close these issues.

1 participant