From ab96ea0738f17b114b90f93f599e83dae110c47b Mon Sep 17 00:00:00 2001 From: "Umang G. Patel" <23169768+robonetphy@users.noreply.github.com> Date: Tue, 30 Aug 2022 23:52:55 +0530 Subject: [PATCH] feat:integrate sidebar toggle with search shortcut --- src/frontend/js/modules/sidebar.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/frontend/js/modules/sidebar.js b/src/frontend/js/modules/sidebar.js index 5026bb4..7bbe01e 100644 --- a/src/frontend/js/modules/sidebar.js +++ b/src/frontend/js/modules/sidebar.js @@ -252,6 +252,11 @@ export default class Sidebar { name: 'CMD+P', on: document.body, callback: (e) => { + // If sidebar is not visible. + if (!this.isVisible) { + // make sidebar visible. + this.handleSliderClick(); + } document.activeElement.blur(); this.nodes.search.focus(); // Stop propagation of event.