Update Terminal.tsx
This commit is contained in:
@@ -265,6 +265,7 @@ const Navbar = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const searchShortcut = 'Shift';
|
||||||
const SecondNavbar = () => {
|
const SecondNavbar = () => {
|
||||||
const { enqueueSnackbar } = useSnackbar();
|
const { enqueueSnackbar } = useSnackbar();
|
||||||
|
|
||||||
@@ -275,7 +276,7 @@ const SecondNavbar = () => {
|
|||||||
if (searchRef?.current) searchRef.current.focus();
|
if (searchRef?.current) searchRef.current.focus();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
useKey('Tab', onSearch);
|
useKey('Shift', onSearch);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Stack
|
<Stack
|
||||||
@@ -296,7 +297,7 @@ const SecondNavbar = () => {
|
|||||||
|
|
||||||
<Input placeholder={'Find or start a conversation'} inputRef={searchRef} />
|
<Input placeholder={'Find or start a conversation'} inputRef={searchRef} />
|
||||||
|
|
||||||
<KeyboardShortcutLabel label="tab" />
|
<KeyboardShortcutLabel label="Shift" />
|
||||||
</Stack>
|
</Stack>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user