feat: also sync double/single char status when switch windows

This commit is contained in:
fanlumaster committed 2026-01-18 17:34:01 +08:00
1 parent 25ea1efe39
commit 7890e815de
3 files changed
+15 -4

No files matched your search

+10 -1
View File
@@ -945,10 +945,11 @@ int SendIMEActivationEventToUIProcessViaNamedPipe()
* @brief Send IME status to UI process via named pipe
*
* @param kbdIsOpen
* @param fullwidthIsOpen
* @param puncIsOpen
* @return int
*/
int SendIMEStatusEventToUIProcessViaNamedPipe(bool kbdIsOpen, bool puncIsOpen)
int SendIMEStatusEventToUIProcessViaNamedPipe(bool kbdIsOpen, bool fullwidthIsOpen, bool puncIsOpen)
{
std::wstring status = L"ftbStatus";
if (kbdIsOpen)
@@ -959,6 +960,14 @@ int SendIMEStatusEventToUIProcessViaNamedPipe(bool kbdIsOpen, bool puncIsOpen)
{
status += L"0";
}
if (fullwidthIsOpen)
{
status += L"1";
}
else
{
status += L"0";
}
if (puncIsOpen)
{
status += L"1";