Skip to content

Commit

Permalink
Do now forward key with modifier into compose.
Browse files Browse the repository at this point in the history
  • Loading branch information
wengxt committed Jul 30, 2022
1 parent 68abfe0 commit bd79704
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/im/keyboard/keyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,11 @@ void KeyboardEngine::keyEvent(const InputMethodEntry &entry, KeyEvent &event) {
return;
}

if (event.key().states().testAny(
KeyStates{KeyState::Ctrl, KeyState::Super})) {
return;
}

auto [compose, consumeKey] = state->handleCompose(event);
auto range = utf8::MakeUTF8CharRange(compose);
for (auto i = std::begin(range); i != std::end(range); ++i) {
Expand Down

0 comments on commit bd79704

Please sign in to comment.