MCPcopy Create free account
hub / github.com/The-Powder-Toy/The-Powder-Toy / DoTextInput

Method DoTextInput

src/gui/interface/Window.cpp:402–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400}
401
402void Window::DoTextInput(String text)
403{
404 if (debugMode)
405 return;
406 //on key unpress
407 if (focusedComponent_ != nullptr)
408 {
409 if (focusedComponent_->Enabled && focusedComponent_->Visible)
410 focusedComponent_->OnTextInput(text);
411 }
412
413 if (!stop)
414 OnTextInput(text);
415 if (destruct)
416 finalise();
417}
418
419void Window::DoTextEditing(String text)
420{

Callers 1

onTextInputMethod · 0.45

Calls 1

OnTextInputMethod · 0.45

Tested by

no test coverage detected