Skip to content

Commit 4e3eed9

Browse files
AerilymBilb
authored andcommitted
fix: prevent propagation of home and end when composing a message
1 parent 7e0782a commit 4e3eed9

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
@@ -680,6 +680,10 @@ class CompositionBoxInner extends Component<Props, State> {
680680
event.preventDefault();
681681
event.stopPropagation();
682682
}
683+
684+
if (this.state.draft.length && (event.key === 'Home' || event.key === 'End')) {
685+
event.stopPropagation();
686+
}
683687
}
684688

685689
private getSendableText(): string {

0 commit comments

Comments
 (0)