MCPcopy Create free account
hub / github.com/axmolengine/axmol / OnTextCompositionEnded

Method OnTextCompositionEnded

core/platform/winrt/Keyboard-winrt.cpp:343–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343void KeyBoardWinRT::OnTextCompositionEnded(Windows::UI::Xaml::Controls::TextBox,
344 Windows::UI::Xaml::Controls::TextCompositionEndedEventArgs const& args)
345{
346 m_useInputMethod = false;
347 auto text = m_textBox.Text();
348 if (!text.empty())
349 {
350 std::shared_ptr<ax::InputEvent> e(new ax::KeyboardEvent(AxmolKeyEvent::Text, text));
351 ax::RenderViewImpl::sharedRenderView()->QueueEvent(e);
352 m_textBox.Text(L"");
353 }
354}
355
356}
357

Callers

nothing calls this directly

Calls 3

QueueEventMethod · 0.80
TextMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected