Skip to content

Commit 17ce55f

Browse files
authored
Merge pull request #1559 from session-foundation/fix/ses-4367/prevent_home_and_end_propagation_when_composing
fix: prevent propagation of home and end when composing a message
2 parents c39e1d5 + 963069d commit 17ce55f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ts/components/conversation/composition/CompositionBox.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,10 @@ class CompositionBoxInner extends Component<Props, State> {
681681
event.preventDefault();
682682
event.stopPropagation();
683683
}
684+
685+
if (this.state.draft.length && (event.key === 'Home' || event.key === 'End')) {
686+
event.stopPropagation();
687+
}
684688
}
685689

686690
private getSendableText(): string {

0 commit comments

Comments
 (0)