aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/edit.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/edit.js b/src/edit.js
index 2fd31c6..ba83488 100644
--- a/src/edit.js
+++ b/src/edit.js
@@ -21,6 +21,8 @@ window.onload = () => {
submitHandler(this);
});
+ delete CodeMirror.keyMap['default']["Ctrl-D"];
+
CodeMirror.fromTextArea(document.getElementById('editmain'), {
mode: 'markdown',
lineNumbers: true,
@@ -79,7 +81,7 @@ function keyboardHandler(e) {
break;
// ctrl + d
case 'd':
- url = document.getElementById('update').getAttribute('href');
+ const url = document.getElementById('update').getAttribute('href');
window.open(url);
break;
default: