feat: search modal

This commit is contained in:
Timothy Jaeryang Baek
2025-05-19 01:39:33 +04:00
parent 4f4811adb1
commit d069d1264d
5 changed files with 212 additions and 39 deletions
+9 -1
View File
@@ -36,7 +36,8 @@
showSettings,
showChangelog,
temporaryChatEnabled,
toolServers
toolServers,
showSearch
} from '$lib/stores';
import Sidebar from '$lib/components/layout/Sidebar.svelte';
@@ -121,6 +122,13 @@
// Check if the Shift key is pressed
const isShiftPressed = event.shiftKey;
// Check if Ctrl + K is pressed
if (isCtrlPressed && event.key.toLowerCase() === 'k') {
event.preventDefault();
console.log('search');
showSearch.set(!$showSearch);
}
// Check if Ctrl + Shift + O is pressed
if (isCtrlPressed && isShiftPressed && event.key.toLowerCase() === 'o') {
event.preventDefault();