MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / MakeActiveTextEntry

Method MakeActiveTextEntry

Source/TextEntry.cpp:262–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262void TextEntry::MakeActiveTextEntry(bool setCaretToEnd)
263{
264 SetActiveKeyboardFocus(this);
265 if (mListener)
266 mListener->TextEntryActivated(this);
267 if (setCaretToEnd)
268 {
269 mCaretPosition = (int)strlen(mString);
270 mCaretPosition2 = mCaretPosition;
271 }
272 mCaretBlink = true;
273 mCaretBlinkTimer = 0;
274}
275
276void TextEntry::RemoveSelectedText()
277{

Callers 5

OnClickedMethod · 0.80
AttemptTextInputMethod · 0.80
OnKeyPressedMethod · 0.80
KeyPressedMethod · 0.80
OnClickedMethod · 0.80

Calls 1

TextEntryActivatedMethod · 0.45

Tested by

no test coverage detected