1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00

Update engine.js

This commit is contained in:
Simon Huber 2019-07-10 09:57:59 +02:00 committed by GitHub
parent 345a6a0f90
commit 217670cdf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,6 +125,9 @@ function CodeMirrorEngine(options) {
event.stopPropagation(); // Otherwise TW's dropzone widget sees the drop event
return false;
});
this.cm.on("focus",function() {
self.widget.cancelPopups();
});
this.cm.on("keydown",function(cm,event) {
return self.widget.handleKeydownEvent.call(self.widget,event);
});