feat: add keyboard shortcut for opening the model selector (#21130)

This commit is contained in:
Thomas Rehn
2026-02-03 14:09:02 -06:00
committed by GitHub
parent a2b9986a75
commit a9e0462e57
2 changed files with 10 additions and 0 deletions
+4
View File
@@ -230,6 +230,10 @@
event.preventDefault();
showSettings.set(false);
showShortcuts.set(false);
} else if (isShortcutMatch(event, shortcuts[Shortcut.OPEN_MODEL_SELECTOR])) {
console.log('Shortcut triggered: OPEN_MODEL_SELECTOR');
event.preventDefault();
document.getElementById('model-selector-0-button')?.click();
} else if (isShortcutMatch(event, shortcuts[Shortcut.NEW_TEMPORARY_CHAT])) {
console.log('Shortcut triggered: NEW_TEMPORARY_CHAT');
event.preventDefault();