MCPcopy Create free account
hub / github.com/SplootCode/splootcode / moveCursorUp

Method moveCursorUp

packages/editor/src/context/selection.ts:793–808  ·  view source on GitHub ↗
(shiftKey: boolean)

Source from the content-addressed store, hash-verified

791
792 @action
793 moveCursorUp(shiftKey: boolean) {
794 const [cursor, isCursor, x, y] = this.cursorMap.getCursorUpOfPosition(
795 this.lastXCoordinate,
796 this.lastYCoordinate,
797 this.cursor
798 )
799 this.lastXCoordinate = x
800 this.lastYCoordinate = y
801
802 if (shiftKey) {
803 this.startMultiSelect(true)
804 this.updateMultiSelect(cursor, isCursor)
805 } else {
806 this.placeCursorPosition(cursor, isCursor, false)
807 }
808 }
809
810 @action
811 moveCursorDown(shiftKey: boolean) {

Callers 1

EditorClass · 0.80

Calls 4

startMultiSelectMethod · 0.95
updateMultiSelectMethod · 0.95
placeCursorPositionMethod · 0.95
getCursorUpOfPositionMethod · 0.80

Tested by

no test coverage detected