From 13d2798329dc0da465913ae5b8c4f42621eb867a Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 29 Aug 2019 14:56:42 +0200 Subject: [PATCH] Fix backspace in CodeMirror --- www/common/sframe-common-codemirror.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/www/common/sframe-common-codemirror.js b/www/common/sframe-common-codemirror.js index 7422c91f1..3f312aa68 100644 --- a/www/common/sframe-common-codemirror.js +++ b/www/common/sframe-common-codemirror.js @@ -399,17 +399,6 @@ define([ "Shift-Tab": function () { editor.execCommand("indentLess"); }, - "Backspace": function () { - var cursor = doc.getCursor(); - var line = doc.getLine(cursor.line); - var beforeCursor = line.substring(0, cursor.ch); - if (beforeCursor && beforeCursor.trim() === "") { - editor.execCommand("indentLess"); - } else { - editor.execCommand("delCharBefore"); - } - - }, }); $('.CodeMirror').css('font-size', fontSize+'px'); };