feat: toggle settings shortcut added

This commit is contained in:
Timothy J. Baek 2023-12-29 23:35:08 -08:00
parent b916f1b07d
commit 7ffc1902a9
3 changed files with 28 additions and 3 deletions

View file

@ -160,6 +160,13 @@
document.getElementById('delete-chat-button')?.click();
}
// Check if Ctrl + S is pressed
if (isCtrlPressed && event.key.toLowerCase() === 's') {
event.preventDefault();
console.log('openSettings');
document.getElementById('open-settings-button')?.click();
}
// Check if Ctrl + / is pressed
if (isCtrlPressed && event.key === '/') {
event.preventDefault();