-
-
Notifications
You must be signed in to change notification settings - Fork 49
+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
base: master
Are you sure you want to change the base?
Conversation
…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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/// 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. |
There was a problem hiding this comment.
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)".
…the compiler doesn't think we're unsure whether the sender will be a Control.
Co-authored-by: Eberhard Beilharz <[email protected]>
There was a problem hiding this 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)
…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