MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / onCursorCancel

Method onCursorCancel

tools/xsbug/behaviors.js:199–203  ·  view source on GitHub ↗
(code, sign)

Source from the content-addressed store, hash-verified

197 return (sign < 0) ? code.selectionOffset : code.selectionOffset + code.selectionLength;
198 }
199 onCursorCancel(code, sign) {
200 this.cursorAnchor = null;
201 this.cursorLocation = null;
202 this.cursorOffset = null;
203 }
204 onCursorX(code, sign) {
205 var offset = this.onCursorBefore(code, sign);
206 this.cursorLocation = null;

Callers 2

onKeyDownMethod · 0.95
onTouchEndedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected