diff --git a/README.md b/README.md index 9d1c921..9826329 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Simple tab switcher for Stable Diffusion WebUI https://github.com/AJpon/a1111-sd-webui-quickswitch/assets/49616225/9058fd46-d352-45bd-84d9-264e2a69c16e ## How to use -Double press the **Alt key** to open the switcher +Double press the **Alt key** or press **Ctrl + Space** to open the switcher Enter the desired tab name. A list of tabs will appear, click on the desired tab. ### Note diff --git a/javascript/quickswitch.js b/javascript/quickswitch.js index 2c0a87c..2b005e7 100644 --- a/javascript/quickswitch.js +++ b/javascript/quickswitch.js @@ -42,7 +42,7 @@ function handleAltKeyDown(event) { let now = Date.now(); - if (event.key === 'Alt' && now - lastAltKeyDownTime < 500) { + if ((event.key === 'Alt' && now - lastAltKeyDownTime < 500) || (event.ctrlKey && event.code === 'Space')) { openSearchBox(); } lastAltKeyDownTime = now;