Skip to content

Commit

Permalink
fix: gtd control key (marimo-team#1467)
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayka authored May 23, 2024
1 parent fc53164 commit dee0e0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/core/codemirror/go-to-definition/underline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class MetaUnderlineVariablePlugin {
};

private keydown = (event: KeyboardEvent) => {
if (event.key === "Meta" || event.key === "Ctrl") {
if (event.key === "Meta" || event.key === "Control") {
this.commandKey = true;
}
};
Expand All @@ -133,7 +133,7 @@ class MetaUnderlineVariablePlugin {
};

private keyup = (event: KeyboardEvent) => {
if (event.key === "Meta" || event.key === "Ctrl") {
if (event.key === "Meta" || event.key === "Control") {
this.commandKey = false;
this.clearUnderline();
}
Expand Down

0 comments on commit dee0e0d

Please sign in to comment.