MCPcopy Index your code
hub / github.com/csev/py4e / showCrossHair

Function showCrossHair

tools/pythonauto/static/codemirrorepl/codemirror.js:3039–3052  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

3037 }
3038
3039 function showCrossHair(cm) {
3040 var lineDiv = cm.display.lineDiv;
3041 addClass(lineDiv, "CodeMirror-crosshair");
3042
3043 function up(e) {
3044 if (e.keyCode == 18 || !e.altKey) {
3045 rmClass(lineDiv, "CodeMirror-crosshair");
3046 off(document, "keyup", up);
3047 off(document, "mouseover", up);
3048 }
3049 }
3050 on(document, "keyup", up);
3051 on(document, "mouseover", up);
3052 }
3053
3054 function onKeyUp(e) {
3055 if (signalDOMEvent(this, e)) return;

Callers 1

onKeyDownFunction · 0.85

Calls 2

addClassFunction · 0.85
onFunction · 0.85

Tested by

no test coverage detected