Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -369,21 +369,13 @@ private void _RegisterTextStore(TextStore textstore)
textstore.EditSinkCookie = editSinkCookie;
textstore.EditCookie = editCookie;

// If Scope of this textstore already has a focus, we need to call SetFocus()
// in order to put this DIM on Cicero's focus. TextStore.OnGotFocus() calls
// ITfThreadMgr::SetFocus();
if (textstore.UiScope.IsKeyboardFocused)
{
textstore.OnGotFocus();
}

_registeredtextstorecount++;
}

// Deactivate and release ThreadManager.
private void DeactivateThreadManager()
{
if (_threadManager != null)
if (_threadManager != null)
{
if (_threadManager.Value != null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1638,6 +1638,14 @@ internal void OnAttach()

_textservicesproperty = new TextServicesProperty(this);

// If Scope of this textstore already has a focus, we need to call SetFocus()
// in order to put this DIM on Cicero's focus. TextStore.OnGotFocus() calls
// ITfThreadMgr::SetFocus();
if (UiScope.IsKeyboardFocused)
{
OnGotFocus();
}

if (IMECompositionTracer.IsEnabled)
{
IMECompositionTracer.ConfigureTracing(this);
Expand Down