Skip to content

+semver:minor Added KeysExtensions class with the IsNavigationKey ext… #1437

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 6 commits into
base: master
Choose a base branch
from

Conversation

tombogle
Copy link
Contributor

@tombogle tombogle commented May 23, 2025

…ension method.

Fixed a subtle bug in IbusKeyboardSwitchingAdaptor when determining whether IBus would have handled a key event while a pre-edit is active. The code now accounts for the possibility of modifier keys (particularly Ctrl), which IBus would presumably have handled when in combination with navigation keys, Backspace, and Delete.


This change is Reviewable

…ension method.

Fixed a subtle bug in IbusKeyboardSwitchingAdaptor when determining whether IBus would have handled a key event while a pre-edit is active. The code now accounts for the possibility of modifier keys (particularly Ctrl), which IBus would presumably have handled when in combination with navigation keys, Backspace, and Delete.
Copy link

github-actions bot commented May 23, 2025

Palaso Tests

     4 files  ±0       4 suites  ±0   10m 10s ⏱️ +23s
 4 978 tests ±0   4 744 ✅ ±0  234 💤 ±0  0 ❌ ±0 
16 186 runs  ±0  15 482 ✅  - 2  704 💤 +2  0 ❌ ±0 

Results for commit 7e1b808. ± Comparison against base commit f1ed3f6.

♻️ This comment has been updated with latest results.

Copy link
Member

@ermshiperete ermshiperete left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +342 to +344
/// REVIEW: During pre-edit, I assume that IBus handles both basic and modified navigation
/// keys like Ctrl+Left. ChatGPT says this is true, but I have not been able to verify this
/// since I don't know how to set up a Linux/IBus environment where I could test this.
Copy link
Member

@ermshiperete ermshiperete May 23, 2025

Choose a reason for hiding this comment

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

To test this on Linux:

  • install Ubuntu 24.04 in a VM
  • install an IME that uses pre-edit: in a terminal run sudo apt update && sudo apt install ibus-pinyin
  • open Keyboard settings, click "+ Add Input Source", search for Pinyin by clicking on the three dots below English. If you type the search term "pinyin" you'll get "Other". Clicking that shows "Chinese (Pinyin)" which you then can add.
  • close the settings
  • in the terminal run ibus restart (or reboot)
  • the language/keyboard picker in the top bar should now offer "Chinese (Pinyin)".

tombogle and others added 3 commits July 9, 2025 21:59
Copy link
Contributor Author

@tombogle tombogle left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 5 files reviewed, 2 unresolved discussions (waiting on @ermshiperete and @hindlemail)

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