add first letter navigation, switch channels with ctrl k and not ctrl shift c

This commit is contained in:
2025-10-17 10:55:38 +02:00
parent 221aa1c2af
commit fca1046047
3 changed files with 64 additions and 8 deletions

View File

@@ -42,10 +42,11 @@ export function useKeyboardShortcuts() {
if (shortcut) {
// Allow certain shortcuts to work globally, even in input fields
const isGlobalShortcut = (shortcut.ctrlKey && shortcut.shiftKey) ||
shortcut.altKey ||
shortcut.key === 'escape'
const isGlobalShortcut = (shortcut.ctrlKey && shortcut.shiftKey) ||
shortcut.altKey ||
shortcut.key === 'escape' ||
(shortcut.ctrlKey && shortcut.key === 'k')
// Skip shortcuts that shouldn't work in input fields
if (isInInputField && !isGlobalShortcut) {
return