mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
parent
c92baad736
commit
a1f5706fea
|
@ -796,8 +796,8 @@ class SessionCompositionBoxInner extends React.Component<Props, State> {
|
|||
}
|
||||
|
||||
private async onKeyDown(event: any) {
|
||||
if (event.key === 'Enter' && !event.shiftKey) {
|
||||
// If shift, newline. Else send message.
|
||||
if (event.key === 'Enter' && !event.shiftKey && !event.nativeEvent.isComposing) {
|
||||
// If shift, newline. If in IME composing mode, leave it to IME. Else send message.
|
||||
event.preventDefault();
|
||||
await this.onSendMessage();
|
||||
} else if (event.key === 'Escape' && this.state.showEmojiPanel) {
|
||||
|
|
Loading…
Reference in a new issue