fix: Change chat tabs nav shortcuts (#27609)

This commit is contained in:
Aleksander Grygier
2026-08-23 19:37:19 +02:00
committed by GitHub
parent 8d9af25633
commit d05f89562d
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -7,6 +7,8 @@ export enum KeyboardKey {
ARROW_RIGHT = 'ArrowRight',
ARROW_UP = 'ArrowUp',
B_LOWER = 'b',
BRACKET_LEFT = 'BracketLeft',
BRACKET_RIGHT = 'BracketRight',
D_LOWER = 'd',
D_UPPER = 'D',
E_UPPER = 'E',
@@ -86,12 +86,12 @@ export function useKeyboardShortcuts(callbacks: KeyboardShortcutsCallbacks) {
callbacks.navigateToNextConversation?.();
}
if (isCmdOrCtrl && event.shiftKey && event.key === KeyboardKey.ARROW_LEFT) {
if (isCmdOrCtrl && event.altKey && event.shiftKey && event.code === KeyboardKey.BRACKET_LEFT) {
event.preventDefault();
callbacks.navigateToPrevTab?.();
}
if (isCmdOrCtrl && event.shiftKey && event.key === KeyboardKey.ARROW_RIGHT) {
if (isCmdOrCtrl && event.altKey && event.shiftKey && event.code === KeyboardKey.BRACKET_RIGHT) {
event.preventDefault();
callbacks.navigateToNextTab?.();
}