Composer: remove the alt+enter hint

This commit is contained in:
Enrico Ros
2026-03-24 22:47:36 -07:00
parent 801479cb5c
commit 4986c61b2a
2 changed files with 3 additions and 4 deletions
@@ -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
-1
View File
@@ -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
; ;