diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2015-11-18 18:39:25 +0100 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2015-11-18 18:39:25 +0100 |
commit | e92caf57bbad2af886b48d8ff82d8fece214b783 (patch) | |
tree | 29d097ca936dd9ddd982f17a97120ca8e48cc9af /js/codeq/robot.js | |
parent | 4ff70466bf0fea1fa91c130e3864868459bfbe9e (diff) |
Escape from editor using the escape key
Diffstat (limited to 'js/codeq/robot.js')
-rw-r--r-- | js/codeq/robot.js | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/js/codeq/robot.js b/js/codeq/robot.js index be164ee..88e889d 100644 --- a/js/codeq/robot.js +++ b/js/codeq/robot.js @@ -136,11 +136,15 @@ var jqDescriptionContent = jqDescription.find('.description'), jqEditor = jqCode.find('.code_editor'), jqHints = jqInfo.find('.hints'), - editor = codeq.makeEditor(jqEditor[0], { - mode: 'python', - indentUnit: 4, - value: currentSolution || '' - }), + editor = codeq.makeEditor(jqEditor[0], + { + mode: 'python', + indentUnit: 4, + value: currentSolution || '' + }, + function () { + jqBtnRun.focus(); + }), activityHandler = codeq.makeActivityHandler(editor, problemDef.id), hinter = codeq.makeHinter(jqHints, jqEditor, editor, 'robot_hints', problemDef, commonDef), commError = function (error) { |