| 112 | } |
| 113 | |
| 114 | void 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 | |
| 121 | void TextField::onSelectKey(const SelectKeyEvent& e) { |
| 122 | #if defined ARCH_MAC |
no test coverage detected