Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

more defensive underline cleraing on keyup (#1473)

Akshay Agrawalaaec41920f01
diff --git a/frontend/src/core/codemirror/go-to-definition/underline.ts b/frontend/src/core/codemirror/go-to-definition/underline.ts
index 7ca68668fd..b906eb91ec 100644
--- a/frontend/src/core/codemirror/go-to-definition/underline.ts
+++ b/frontend/src/core/codemirror/go-to-definition/underline.ts
@@ -133,10 +133,8 @@ class MetaUnderlineVariablePlugin {
};
private keyup = (event: KeyboardEvent) => {
- if (event.key === "Meta" || event.key === "Control") {
- this.commandKey = false;
- this.clearUnderline();
- }
+ this.commandKey = false;
+ this.clearUnderline();
};
private clearUnderline() {