diff options
Diffstat (limited to 'src/static')
| -rw-r--r-- | src/static/js/client/sidebar-search.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/static/js/client/sidebar-search.js b/src/static/js/client/sidebar-search.js index 7b01cb00..386bf477 100644 --- a/src/static/js/client/sidebar-search.js +++ b/src/static/js/client/sidebar-search.js @@ -615,7 +615,7 @@ export function addPageListeners() { return; } - if (event.shiftKey && event.code === 'Slash') { + if (domEvent.shiftKey && domEvent.code === 'Slash') { domEvent.preventDefault(); info.searchLabel.click(); } @@ -785,7 +785,7 @@ function recordActiveQueryContext() { } function clearSidebarSearch() { - const {session, state} = info; + const {state} = info; if (state.stoppedTypingTimeout) { clearTimeout(state.stoppedTypingTimeout); |