Add super key support for thumb shift mode - #46
Conversation
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request adds IBus.ModifierType.MOD4_MASK to the state mask and modifier checks in both the Python 2 and Python 3 engines. The feedback suggests removing redundant backslashes (\) used for line continuation inside parentheses in the Python 3 engine to comply with PEP 8 and maintain consistency with the Python 2 implementation.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
ef50a00 to
4a6ba0c
Compare
|
Hi Fujiwara-san, I have created a new commit for the backslash removal to keep a record for the original change. If you would prefer to have the commits combined for a cleaner commit trace, please let me know |
|
Thank you for your patch. |
fujiwarat
left a comment
There was a problem hiding this comment.
I wish to consolidate the similar logic between QWERTY Romaji and Thumb Shift modes.
New variables can be added after the ANTHY_CONFIG_PATH variable definition in engine/engine.py
# Shift, Alt and Super keys
ANTHY_NO_OUTPUT_MODIFIERS = (
IBus.ModifierType.CONTROL_MASK |
IBus.ModifierType.MOD1_MASK |
IBus.ModifierType.MOD4_MASK
)
ANTHY_SHORTCUT_MODIFIERS = (
ANTHY_NO_OUTPUT_MODIFIERS |
IBus.ModifierType.SHIFT_MASK
)
Also please rebase your patch and append the "Fixes #46" line to your patch description.
|
Please click "Resolve conversation" if you resolve the suggestions. |
4a6ba0c to
1be576a
Compare
1be576a to
2cbb3d6
Compare
|
Thank you for the suggestion! Please review the latest commit and let me know if there is any other changes you'd like me to make. |
34e8c54 to
7cf0c54
Compare
7cf0c54 to
1cc05ac
Compare
1cc05ac to
bc65cd3
Compare
|
LGTM. |
|
Sorry, I'm not sure I understand... Just to confirm, may I know if you'd like me to remove the modifier fix itself from Python 2? Or would you prefer that I simply revert the refactoring for the Python 2 engine? |
Symptom
Given that:
When a user presses Super + Space
Then the user sees a space added to the text field and layout not switched
Expected
Given that:
When a user presses Super + Space
Then the user sees that Anthy is no longer the active IBus Engine
Root Cause
The super key modifier is ignored only in thumb shift mode.
In Thumb Shift Mode (
__process_key_event_thumb()):In Romaji or Kana Mode (
__process_key_event_internal2()):Solution
Supplement
MOD4_MASKto the state usages specific to thumb shift mode.Remarks
Please let me know if there are practices that I should follow.