MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / MoveCaret

Method MoveCaret

Source/CodeEntry.cpp:1156–1163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1154}
1155
1156void CodeEntry::MoveCaret(int pos, bool allowSelection /*=true*/)
1157{
1158 mCaretPosition = pos;
1159 if (!allowSelection || !(GetKeyModifiers() & kModifier_Shift))
1160 mCaretPosition2 = mCaretPosition;
1161 mCaretBlink = true;
1162 mCaretBlinkTimer = 0;
1163}
1164
1165void CodeEntry::MoveCaretToStart()
1166{

Callers

nothing calls this directly

Calls 1

GetKeyModifiersFunction · 0.85

Tested by

no test coverage detected