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

Method cursorToLineEnd

src/ui/TextField.cpp:426–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424}
425
426void TextField::cursorToLineEnd() {
427 if (password) {
428 cursor = text.size();
429 return;
430 }
431 size_t pos = text.find('\n', cursor);
432 if (pos == std::string::npos)
433 cursor = text.size();
434 else
435 cursor = pos;
436}
437
438void TextField::createContextMenu() {
439 ui::Menu* menu = createMenu();

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected