fix: toggle settings shortcut fix

This commit is contained in:
Timothy J. Baek 2023-12-30 00:24:57 -08:00
parent 0890b53e13
commit bf40695eb8
2 changed files with 3 additions and 3 deletions

View file

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