MCPcopy Create free account
hub / github.com/VCVRack/Rack / onSelectText

Method onSelectText

src/ui/TextField.cpp:114–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114void TextField::onSelectText(const SelectTextEvent& e) {
115 std::u32string s32(1, char32_t(e.codepoint));
116 std::string s8 = string::UTF32toUTF8(s32);
117 insertText(s8);
118 e.consume(this);
119}
120
121void TextField::onSelectKey(const SelectKeyEvent& e) {
122#if defined ARCH_MAC

Callers 1

handleTextMethod · 0.45

Calls 2

UTF32toUTF8Function · 0.85
consumeMethod · 0.80

Tested by

no test coverage detected