fix(tsf): pass application modifier shortcuts through

This commit is contained in:
Ouchihao committed 2026-09-04 16:32:12 +08:00
1 parent 68c203cd5b
commit 4b1696ced3
1 file changed
+9
+9
View File
@@ -711,6 +711,15 @@ BOOL CMetasequoiaIME::_IsKeyEaten( //
return TRUE;
}
// Other Ctrl/Alt/Windows combinations belong to the application.
// IME-owned shortcuts are handled before this normal key classifier.
if ((shortcutModifiers & 0b00000110u) != 0 ||
(GetAsyncKeyState(VK_LWIN) & 0x8000) != 0 ||
(GetAsyncKeyState(VK_RWIN) & 0x8000) != 0)
{
return isTouchKeyboardSpecialKeys;
}
const bool isComposing = freshCompositionState ? false : _IsComposing() != FALSE;
const CANDIDATE_MODE candidateMode =
freshCompositionState ? CANDIDATE_NONE : _candidateMode;