Maybe fix losing selection in the code app when tab is not focused

pull/1/head
yflory 6 years ago
parent 521940f604
commit 7c7a3660c8

@ -62,6 +62,7 @@ define([
}); });
editor._noCursorUpdate = false; editor._noCursorUpdate = false;
editor.state.focused = true;
if(selects[0] === selects[1]) { if(selects[0] === selects[1]) {
editor.setCursor(posToCursor(selects[0], remoteDoc)); editor.setCursor(posToCursor(selects[0], remoteDoc));
} }

Loading…
Cancel
Save