Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

fix(sheets-ui): can't quit editor after enter '=' (#3861)

zhangw5343f2c41e1d
diff --git a/packages/sheets-ui/src/controllers/editor/editing.render-controller.ts b/packages/sheets-ui/src/controllers/editor/editing.render-controller.ts
index 0cb417d979..71d8e53528 100644
--- a/packages/sheets-ui/src/controllers/editor/editing.render-controller.ts
+++ b/packages/sheets-ui/src/controllers/editor/editing.render-controller.ts
@@ -473,6 +473,9 @@ export class EditingRenderController extends Disposable implements IRenderModule
// Reselect the current selections, when exist cell editor by press ESC.I
if (keycode === KeyCode.ESC) {
+ if (this._editorBridgeService.isForceKeepVisible()) {
+ this._editorBridgeService.disableForceKeepVisible();
+ }
const selections = this._workbookSelections.getCurrentSelections();
if (selections) {
this._commandService.syncExecuteCommand(SetSelectionsOperation.id, {