Skip to content

Commit

Permalink
fix: esc showing up as empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
arnav-kr committed Jul 17, 2024
1 parent c7e6528 commit 0cb09eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extension/js/hotkeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ let state = new Proxy(stateObj, {

if (key === "currentValue") {
hotkeyInput.value = value;
if (value === "") {
modalPreview.innerHTML = "";
return true;
}
modalPreview.innerHTML = keyPreview(value);

let newKey = value;
Expand Down

0 comments on commit 0cb09eb

Please sign in to comment.