that's fucken sick bruh
This commit is contained in:
@@ -87,7 +87,11 @@ const Navbar = ({
|
|||||||
|
|
||||||
{isSearching && <CircularProgress size={20} />}
|
{isSearching && <CircularProgress size={20} />}
|
||||||
|
|
||||||
<KeyboardShortcutLabel label={KeyboardShortcuts.search.label} />
|
{searchVal ? (
|
||||||
|
<KeyboardShortcutLabel label={KeyboardShortcuts.escape.label} />
|
||||||
|
) : (
|
||||||
|
<KeyboardShortcutLabel label={KeyboardShortcuts.search.label} />
|
||||||
|
)}
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|
||||||
<Tooltip title={'Group conversation'}>
|
<Tooltip title={'Group conversation'}>
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ import { useDebounce, useKeyPressEvent, useRendersCount, useUnmount } from 'reac
|
|||||||
import Conversation from '@nirvana/core/src/models/conversation.model';
|
import Conversation from '@nirvana/core/src/models/conversation.model';
|
||||||
import { ConversationList } from './ConversationList';
|
import { ConversationList } from './ConversationList';
|
||||||
import FooterControls from './FooterControls';
|
import FooterControls from './FooterControls';
|
||||||
|
import { KeyboardShortcuts } from '../util/keyboard';
|
||||||
import MainPanel from './MainPanel';
|
import MainPanel from './MainPanel';
|
||||||
import Navbar from './Navbar';
|
import Navbar from './Navbar';
|
||||||
import NewConversationDialog from './NewConversationDialog';
|
import NewConversationDialog from './NewConversationDialog';
|
||||||
@@ -476,7 +477,7 @@ export function TerminalProvider({ children }: { children?: React.ReactNode }) {
|
|||||||
setSearchVal('');
|
setSearchVal('');
|
||||||
}, [setSelectedConversationId, setCreateConversationMode, setSearchVal]);
|
}, [setSelectedConversationId, setCreateConversationMode, setSearchVal]);
|
||||||
|
|
||||||
useKeyPressEvent('Escape', handleEscape);
|
useKeyPressEvent(KeyboardShortcuts.escape.shortcutKey, handleEscape);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TerminalContext.Provider
|
<TerminalContext.Provider
|
||||||
|
|||||||
Reference in New Issue
Block a user