1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Change arrow-function to function call for HTA (#7552)

This commit is contained in:
Mario Pietsch 2023-06-28 10:54:27 +02:00 committed by GitHub
parent 6bb0da07dc
commit 16ef1d84cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -161,7 +161,7 @@ function CodeMirrorEngine(options) {
if (cm.state.draggingText && cm.doc.sel.contains(pos) > -1) { if (cm.state.draggingText && cm.doc.sel.contains(pos) > -1) {
cm.state.draggingText(event); cm.state.draggingText(event);
// Ensure the editor is re-focused // Ensure the editor is re-focused
setTimeout(() => cm.display.input.focus(), 20); setTimeout(function() {cm.display.input.focus();}, 20);
return; return;
} }
try { try {