CSimpleEditBox::SetFocus
function · ui · orchestration
- Address
0x77e3d0· 51 bytes, up to0x77e402- Meaning
- Moves the keyboard focus to a visible edit box, running the old box's loss and the new one's gain
- Confidence
- verified, proof one
- Finding
- ui/editbox#keyboard-focus
Finding: Keyboard focus in ui: EditBox
One edit box at a time holds the focus. Focusing requires the box to be visible and not already
focused: the old box loses it first, running OnEditFocusLost, then the new one gains it,
running OnEditFocusGained. Clearing acts only on the box that holds it. Showing a box focuses it
when nothing holds the focus and autoFocus is set; hiding a box clears its focus. A focus change
switches the input method on or off unless the box is numeric or password, and repaints the
caret.
The derivation is in the doc.
Callers 8
- CSimpleEditBox::OnFrameShow ui
- CSimpleEditBox::OnChar ui
- CSimpleEditBox::OnInputLanguage ui
- CSimpleEditBox::OnKeyDown ui
- CSimpleEditBox::OnKeyRepeat ui
- CSimpleEditBox::TakesKeyboard ui
- CSimpleEditBox::OnMouseDown ui
- EditBox::SetFocus ui
Callees 1
Calls and jumps by a bare address, from tables/calls.tsv.