Skip to content

Commit

Permalink
Ignore AltGr just like other modifier key
Browse files Browse the repository at this point in the history
Otherwise it will prevent AltGr combined character to be typed into
buffer.

Fix #1079
  • Loading branch information
wengxt committed Jun 22, 2024
1 parent 57f7769 commit b1865c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/im/keyboard/keyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,9 @@ void KeyboardEngine::keyEvent(const InputMethodEntry &entry, KeyEvent &event) {
}

// and by pass all modifier
if (event.key().isModifier()) {
if (event.key().isModifier() ||
event.key().sym() == FcitxKey_ISO_Level3_Shift ||
event.key().sym() == FcitxKey_ISO_Level5_Shift) {
return;
}

Expand Down

0 comments on commit b1865c0

Please sign in to comment.