summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2015-10-10 17:25:27 +0200
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2015-10-10 17:25:27 +0200
commitdce9340d12b0be9f541217e0a2dc92bcd17fd6da (patch)
tree9b11fd0953b9262f3504b27b4833239f584b1f13 /js
parenta939dce96f42c198456bb5c7a9e524a1b23eba23 (diff)
Make backspace work with shift pressed
Diffstat (limited to 'js')
-rw-r--r--js/codeq/console.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/codeq/console.js b/js/codeq/console.js
index 2cc7efd..a9c345d 100644
--- a/js/codeq/console.js
+++ b/js/codeq/console.js
@@ -12,12 +12,15 @@
'ArrowRight': function () { this.moveRight(); return false; },
'ArrowUp': function () { this.showPreviousHistory(); return false; },
'ArrowDown': function () { this.showNextHistory(); return false; },
- 'Backspace': function () { this.deleteCharacterLeft(); return false; },
+ 'Backspace': function () { this.deleteCharacterLeft(); return false; },
'Delete': function () { this.deleteCharacterRight(); return false; },
'End': function () { this.moveToEndOfLine(); return false; },
'Home': function () { this.moveToStartOfLine(); return false; },
'Enter': function () { return true; }, // if it returns false in line-buffered mode, then a line will never be formed -> no input ever
'Tab': noop
+ },
+ '100': {
+ 'Backspace': function () { this.deleteCharacterLeft(); return false; },
}
};