refac/fix: shortcut modal

This commit is contained in:
Timothy Jaeryang Baek
2025-07-18 12:47:22 +04:00
parent 43e11aa807
commit 3e67ce6e8e
3 changed files with 7 additions and 7 deletions
+3 -2
View File
@@ -34,6 +34,7 @@
tags,
banners,
showSettings,
showShortcuts,
showChangelog,
temporaryChatEnabled,
toolServers,
@@ -185,8 +186,8 @@
// Check if Ctrl + / is pressed
if (isCtrlPressed && event.key === '/') {
event.preventDefault();
console.log('showShortcuts');
document.getElementById('show-shortcuts-button')?.click();
showShortcuts.set(!$showShortcuts);
}
// Check if Ctrl + Shift + ' is pressed