Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
knyghty committed Aug 22, 2024
1 parent b1b76bf commit bb4b5da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django_admin_keyboard_shortcuts/static/admin/js/shortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ function isFocusedTextField() {
}

function handleKeyDown(event) {
console.log("keydown")
console.log("keydown");
if (isFocusedTextField()) { return; }
const shortcut = previousKey ? `${previousKey} ${event.key}` : event.key;
console.log(shorcutFunctions);
console.log(shortcutFunctions);
if (shortcutFunctions.has(shortcut)) {
console.log("has shortcut");
shortcutFunctions.get(shortcut)();
Expand Down

0 comments on commit bb4b5da

Please sign in to comment.