MCPcopy Index your code
hub / github.com/DHTMLX/gantt / showCrossHair

Function showCrossHair

samples/common/codehighlight/codemirror.js:7224–7237  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

7222 }
7223
7224 function showCrossHair(cm) {
7225 var lineDiv = cm.display.lineDiv;
7226 addClass(lineDiv, "CodeMirror-crosshair");
7227
7228 function up(e) {
7229 if (e.keyCode == 18 || !e.altKey) {
7230 rmClass(lineDiv, "CodeMirror-crosshair");
7231 off(document, "keyup", up);
7232 off(document, "mouseover", up);
7233 }
7234 }
7235 on(document, "keyup", up);
7236 on(document, "mouseover", up);
7237 }
7238
7239 function onKeyUp(e) {
7240 if (e.keyCode == 16) { this.doc.sel.shift = false; }

Callers 1

onKeyDownFunction · 0.85

Calls 2

addClassFunction · 0.85
onFunction · 0.70

Tested by

no test coverage detected