Skip to content

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.
@github-actions
Copy link

github-actions bot commented May 23, 2025

Palaso Tests

     4 files  ±0       4 suites  ±0   10m 19s ⏱️ -30s
 5 092 tests ±0   4 858 ✅  - 1  234 💤 +1  0 ❌ ±0 
16 591 runs  ±0  15 870 ✅  - 1  721 💤 +1  0 ❌ ±0 

Results for commit e0e9186. ± Comparison against base commit d010103.

This pull request skips 1 test.
SIL.Tests.IO.FileLocationUtilitiesTests ‑ LocateInProgramFiles_SendValidProgramDeepSearch_ReturnsProgramPath

♻️ 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
…the compiler doesn't think we're unsure whether the sender will be a Control.
Co-authored-by: Eberhard Beilharz <ermshiperete@users.noreply.github.com>
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.

3 participants