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

This commit is contained in:
yflory 2019-08-26 16:25:34 +02:00
parent 521940f604
commit 7c7a3660c8

View File

@ -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));
} }