Skip to content

Commit

Permalink
more defensive underline cleraing on keyup (marimo-team#1473)
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayka authored May 23, 2024
1 parent d5cbb24 commit aaec419
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions frontend/src/core/codemirror/go-to-definition/underline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit aaec419

Please sign in to comment.