mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
Composer: remove the alt+enter hint
This commit is contained in:
@@ -139,7 +139,7 @@ export function Composer(props: {
|
|||||||
})));
|
})));
|
||||||
const timeToShowTips = useLogicSherpaStore(state => state.usageCount >= SHOW_TIPS_AFTER_RELOADS);
|
const timeToShowTips = useLogicSherpaStore(state => state.usageCount >= SHOW_TIPS_AFTER_RELOADS);
|
||||||
const { novel: explainShiftEnter, touch: touchShiftEnter } = useUICounter('composer-shift-enter');
|
const { novel: explainShiftEnter, touch: touchShiftEnter } = useUICounter('composer-shift-enter');
|
||||||
const { novel: explainAltEnter, touch: touchAltEnter } = useUICounter('composer-alt-enter');
|
|
||||||
const [startupText, setStartupText] = useComposerStartupText();
|
const [startupText, setStartupText] = useComposerStartupText();
|
||||||
const enterIsNewline = useUIPreferencesStore(state => state.enterIsNewline);
|
const enterIsNewline = useUIPreferencesStore(state => state.enterIsNewline);
|
||||||
const composerQuickButton = useUIPreferencesStore(state => state.composerQuickButton);
|
const composerQuickButton = useUIPreferencesStore(state => state.composerQuickButton);
|
||||||
@@ -546,7 +546,7 @@ export function Composer(props: {
|
|||||||
// Alt (Windows) or Option (Mac) + Enter: append the message instead of sending it
|
// Alt (Windows) or Option (Mac) + Enter: append the message instead of sending it
|
||||||
if (e.altKey && !e.metaKey && !e.ctrlKey) {
|
if (e.altKey && !e.metaKey && !e.ctrlKey) {
|
||||||
if (await handleSendAction('append-user', composeText)) // 'alt+enter' -> write
|
if (await handleSendAction('append-user', composeText)) // 'alt+enter' -> write
|
||||||
touchAltEnter();
|
e.stopPropagation();
|
||||||
return e.preventDefault();
|
return e.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -567,7 +567,7 @@ export function Composer(props: {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}, [actileInterceptKeydown, assistantAbortible, chatExecuteMode, composeText, enterIsNewline, handleSendAction, touchAltEnter, touchShiftEnter]);
|
}, [actileInterceptKeydown, assistantAbortible, chatExecuteMode, composeText, enterIsNewline, handleSendAction, touchShiftEnter]);
|
||||||
|
|
||||||
|
|
||||||
// Focus mode
|
// Focus mode
|
||||||
|
|||||||
@@ -250,7 +250,6 @@ type KnownKeys =
|
|||||||
| 'beam-wizard' // first Beam
|
| 'beam-wizard' // first Beam
|
||||||
| 'call-wizard' // first Call
|
| 'call-wizard' // first Call
|
||||||
| 'composer-shift-enter' // not used Shift + Enter in the Composer yet
|
| 'composer-shift-enter' // not used Shift + Enter in the Composer yet
|
||||||
| 'composer-alt-enter' // not used Alt + Enter in the Composer yet
|
|
||||||
| 'models-setup-first-visit' // first visit to the Models Setup
|
| 'models-setup-first-visit' // first visit to the Models Setup
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user