UI: Fix Beam ctrl+enter

This commit is contained in:
Enrico Ros
2024-11-18 14:46:33 -08:00
parent ea9aaa6524
commit c498c31050
@@ -524,8 +524,10 @@ export function Composer(props: {
// Ctrl (Windows) or Command (Mac) + Enter: send for beaming
if (e.ctrlKey && !e.metaKey && !e.altKey) {
if (await handleSendAction('beam-content', composeText)) // 'ctrl+enter' -> beam
if (await handleSendAction('beam-content', composeText)) { // 'ctrl+enter' -> beam
touchCtrlEnter();
e.stopPropagation();
}
return e.preventDefault();
}