feat: also sync double/single char status when switch windows
This commit is contained in:
1 parent
25ea1efe39
commit
7890e815de
3 files changed
+15
-4
No files matched your search
+10
-1
@@ -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";
|
||||
|
||||
Reference in new issue
Block a user