fix: Change chat tabs nav shortcuts (#27609)
This commit is contained in:
@@ -7,6 +7,8 @@ export enum KeyboardKey {
|
|||||||
ARROW_RIGHT = 'ArrowRight',
|
ARROW_RIGHT = 'ArrowRight',
|
||||||
ARROW_UP = 'ArrowUp',
|
ARROW_UP = 'ArrowUp',
|
||||||
B_LOWER = 'b',
|
B_LOWER = 'b',
|
||||||
|
BRACKET_LEFT = 'BracketLeft',
|
||||||
|
BRACKET_RIGHT = 'BracketRight',
|
||||||
D_LOWER = 'd',
|
D_LOWER = 'd',
|
||||||
D_UPPER = 'D',
|
D_UPPER = 'D',
|
||||||
E_UPPER = 'E',
|
E_UPPER = 'E',
|
||||||
|
|||||||
@@ -86,12 +86,12 @@ export function useKeyboardShortcuts(callbacks: KeyboardShortcutsCallbacks) {
|
|||||||
callbacks.navigateToNextConversation?.();
|
callbacks.navigateToNextConversation?.();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isCmdOrCtrl && event.shiftKey && event.key === KeyboardKey.ARROW_LEFT) {
|
if (isCmdOrCtrl && event.altKey && event.shiftKey && event.code === KeyboardKey.BRACKET_LEFT) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
callbacks.navigateToPrevTab?.();
|
callbacks.navigateToPrevTab?.();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isCmdOrCtrl && event.shiftKey && event.key === KeyboardKey.ARROW_RIGHT) {
|
if (isCmdOrCtrl && event.altKey && event.shiftKey && event.code === KeyboardKey.BRACKET_RIGHT) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
callbacks.navigateToNextTab?.();
|
callbacks.navigateToNextTab?.();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user