refactor(linux): Use km_core_actions struct instead of queue 🌱#10480
Conversation
User Test ResultsTest specification and instructions ✅ SUITE_WRITER: LibreOffice Writer5 tests in 1 groups PASSED
✅ SUITE_GEDIT: gedit5 tests in 1 groups PASSED
✅ SUITE_FIREFOX: Firefox4 tests in 1 groups PASSED
✅ SUITE_CHROMIUM: Chrome/Chromium5 tests in 1 groups PASSED
🟩 SUITE_TERMINAL: gnome-terminal
✅ SUITE_ANKI: Anki5 tests in 1 groups PASSED
✅ SUITE_SEARCHBAR: Searchbar in gnome-shell5 tests in 1 groups PASSED
Test Artifacts
|
km_core_state_action_items struct instead of queuekm_core_state_action_items struct instead of queue 🌱
linux/ibus-keyman/src/engine.c
Outdated
| // If we have an old ibus version without prefilter support, or a client that does support | ||
| // surrounding text we already did everything that needs to be done including forwarding | ||
| // a keystroke. So we can return TRUE to stop processing of this event. | ||
| return TRUE; |
There was a problem hiding this comment.
Does this mean finish_process_actions() never returns FALSE now?
There was a problem hiding this comment.
| return TRUE; | |
| return TRUE; |
There was a problem hiding this comment.
Does this mean finish_process_actions() never returns FALSE now?
yes. And this means the method doesn't have to return a bool. Changed. Thanks!
km_core_state_action_items struct instead of queue 🌱km_core_actions struct instead of queue 🌱
mcdurdin
left a comment
There was a problem hiding this comment.
LGTM. Cleaner. No marker shenanigans!
linux/ibus-keyman/src/engine.c
Outdated
| // If we have an old ibus version without prefilter support, or a client that does support | ||
| // surrounding text we already did everything that needs to be done including forwarding | ||
| // a keystroke. So we can return TRUE to stop processing of this event. | ||
| return TRUE; |
There was a problem hiding this comment.
| return TRUE; | |
| return TRUE; |
Test ResultsSUITE_FIREFOX: Firefox
|
Test ResultsSUITE_CHROMIUM: Chromium
|
|
@bharanidharanj Do you have the patched ibus installed ( |
|
@bharanidharanj There seem to be problems with Ubuntu 23.10 which I will look into separately. Could you please re-test with Ubuntu 22.04 Jammy? Thanks! Also, please make sure to test in gedit which is a separate app from Text Editor - you might have to install it explicitly with @keymanapp-test-bot retest SUITE_WRITER TEST_WRITER_KM TEST_WRITER_KM_BS SUITE_GEDIT TEST_GEDIT_IPA TEST_GEDIT_HI TEST_GEDIT_KM TEST_GEDIT_KM_BS SUITE_CHROMIUM TEST_CHROMIUM_IPA TEST_CHROMIUM_KO TEST_CHROMIUM_HI TEST_CHROMIUM_KM TEST_CHROMIUM_KM_BS SUITE_TERMINAL TEST_TERMINAL_IPA SUITE_SEARCHBAR TEST_SEARCHBAR_IPA TEST_SEARCHBAR_HI |
@ermshiperete Sure. I will do it. |
SUITE_CHROMIUM: Chrome/Chromium
|
Test ResultsSUITE_WRITER: LibreOffice Writer
|
|
SUITE_TERMINAL: gnome-terminal
|
Implements #10353.
User Testing
Preparations
The tests can be be run on any Linux platforms (running with X11). Note that Firefox and Chromium have to be installed from .deb, the snap version won't work because it's missing the ibus patch.
Install Anki
Install patched ibus by running these commands:
dpkg -l ibusshould show a version number withsilin the version string, e.g.1.5.28-3sil2~jammyInstall build artifacts of this PR
Reboot
Install the following keyboards in Keyman:
SUITE_WRITER: LibreOffice Writer
Open LibreOffice Writer.
Tests
n>. Verify that the result is "ŋ".han<space>geul<space>. Verify that the result is "한글".shrI. Verify that the result is "श्री". (If the result looks wrong, select all text and change the font to "Siddhanta")xEjmr. Verify that the output is "ខ្មែរ".SUITE_GEDIT: gedit
Open gedit.
Tests
n>. Verify that the result is "ŋ".han<space>geul<space>. Verify that the result is "한글".shrI. Verify that the result is "श्री".xEjmr. Verify that the output is "ខ្មែរ".SUITE_FIREFOX: Firefox
Open https://keyman.com/keyboards in Firefox.
NOTE: If the output looks wrong, copy the text from the browser and paste it into gedit and verify that it there.
Tests
n>. Verify that the result is "ŋ".han<space>geul<space>. Verify that the result is "한글".shrI. Verify that the result is "श्री".xEjmr. Verify that the output is "ខ្មែរ".NOTE: Backspace with Firefox won't work correctly because of #9971).
SUITE_CHROMIUM: Chrome/Chromium
Open https://keyman.com/keyboards in Chrome/Chromium browser.
NOTE: If the output looks wrong, copy the text from the browser and paste it into gedit and verify that it there.
Tests
n>. Verify that the result is "ŋ".han<space>geul<space>. Verify that the result is "한글".shrI. Verify that the result is "श्री".xEjmr. Verify that the output is "ខ្មែរ".SUITE_TERMINAL: gnome-terminal
Open Terminal.
Tests
n>. Verify that the result is "ŋ".NOTE: the other tests for gnome-terminal won't work because of #10481
SUITE_ANKI: Anki
Open Anki.
Tests
n>. Verify that the result is "ŋ".han<space>geul<space>. Verify that the result is "한글".shrI. Verify that the result is "श्री" (If the result looks wrong, copy/paste it in text editor and verify there).xEjmr. Verify that the output is "ខ្មែរ".SUITE_SEARCHBAR: Searchbar in gnome-shell
Press Windows key to open searchbar.
Tests
n>. Verify that the result is "ŋ".han<space>geul<space>. Verify that the result is "한글".shrI. Verify that the result is "श्री".xEjmr. Verify that the output is "ខ្មែរ".