File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -253,8 +253,7 @@ HRESULT WeaselTSF::_HandleCompartment(REFGUID guidCompartment) {
253
253
_EnableLanguageBar (isOpen);
254
254
_UpdateLanguageBar (_status);
255
255
} else {
256
- _status.ascii_mode = !_status.ascii_mode ;
257
- _SetKeyboardOpen (true );
256
+ _status.ascii_mode = !_IsKeyboardOpen ();
258
257
if (_pLangBarButton && _pLangBarButton->IsLangBarDisabled ())
259
258
_EnableLanguageBar (true );
260
259
_HandleLangBarMenuSelect (_status.ascii_mode
Original file line number Diff line number Diff line change @@ -416,7 +416,11 @@ void WeaselTSF::_UpdateLanguageBar(weasel::Status stat) {
416
416
else
417
417
flags &= (~TF_CONVERSIONMODE_FULLSHAPE);
418
418
_SetCompartmentDWORD (flags, GUID_COMPARTMENT_KEYBOARD_INPUTMODE_CONVERSION);
419
-
419
+ if (!_isToOpenClose) {
420
+ BOOL open = !stat.ascii_mode ;
421
+ if (_IsKeyboardOpen () != open)
422
+ _SetKeyboardOpen (open);
423
+ }
420
424
_pLangBarButton->UpdateWeaselStatus (stat);
421
425
}
422
426
You can’t perform that action at this time.
0 commit comments