Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 25, 2025
1 parent b7c1c88 commit c51ed69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions djangoproject/static/js/djangoproject.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ document.querySelector('.menu-button').addEventListener('click', function () {

// Focus, select, and scroll to search input when key combination is pressed
window.addEventListener('keydown', function (e) {
const isCtrlK = (e.metaKey || e.ctrlKey) && e.key === "k";
const isSlash = e.key === "/";
const isCtrlK = (e.metaKey || e.ctrlKey) && e.key === 'k';
const isSlash = e.key === '/';
if (!(isCtrlK || isSlash)) {
return;
}
Expand Down

0 comments on commit c51ed69

Please sign in to comment.