Преглед на файлове

evaluate correct selection range.

Lucas Stadler преди 13 години
родител
ревизия
43faaf54f8
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      js/pixl/public/trixl.html

+ 1 - 1
js/pixl/public/trixl.html

582
582
583
			if (ev.ctrlKey && ev.keyCode == 13) { // ctrl+enter
583
			if (ev.ctrlKey && ev.keyCode == 13) { // ctrl+enter
584
				if (editor == document.activeElement) {
584
				if (editor == document.activeElement) {
585
					var sel = editor.value.substr(editor.selectionStart, editor.selectionEnd);
585
					var sel = editor.value.substring(editor.selectionStart, editor.selectionEnd);
586
					eval(sel);
586
					eval(sel);
587
				}
587
				}
588
			}
588
			}