mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
Esc to cancel gen
This commit is contained in:
@@ -428,6 +428,10 @@ export function Composer(props: {
|
||||
|
||||
// useMediaSessionCallbacks({ play: toggleRecognition, pause: toggleRecognition });
|
||||
|
||||
useGlobalShortcuts('ChatComposer.Gen', React.useMemo(() => [
|
||||
...(assistantAbortible ? [{ key: ShortcutKey.Esc, action: handleStopClicked, description: 'Stop', level: 2 }] : []),
|
||||
], [assistantAbortible, handleStopClicked]));
|
||||
|
||||
useGlobalShortcuts('ChatComposer', React.useMemo(() => {
|
||||
const composerShortcuts: ShortcutObject[] = [];
|
||||
if (supportsClipboardRead)
|
||||
|
||||
Reference in New Issue
Block a user