Skip to content

Commit 963069d

Browse files
committed
fix: prevent propagation of home and end when composing a message
1 parent c39e1d5 commit 963069d

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)