MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / stb_textedit_move_to_first

Function stb_textedit_move_to_first

KBotExt/imgui/imstb_textedit.h:613–621  ·  view source on GitHub ↗

move cursor to first character of selection

Source from the content-addressed store, hash-verified

611
612// move cursor to first character of selection
613static void stb_textedit_move_to_first(STB_TexteditState* state)
614{
615 if (STB_TEXT_HAS_SELECTION(state)) {
616 stb_textedit_sortselection(state);
617 state->cursor = state->select_start;
618 state->select_end = state->select_start;
619 state->has_preferred_x = 0;
620 }
621}
622
623// move cursor to last character of selection
624static void stb_textedit_move_to_last(STB_TEXTEDIT_STRING* str, STB_TexteditState* state)

Callers 1

stb_textedit_keyFunction · 0.85

Calls 1

Tested by

no test coverage detected