feat: allow sending messages using Enter Key (numeric keypad)

This commit is contained in:
Srevin Saju
2021-04-03 13:27:10 +00:00
committed by Carl Schwan
parent 44a7b3c700
commit 71d4b8763e

View File

@@ -113,7 +113,7 @@ ToolBar {
onTriggered: currentRoom.sendTypingNotification(true)
}
Keys.onReturnPressed: {
function sendMessage(event) {
if (isCompleting) {
chatBar.complete();
@@ -127,6 +127,9 @@ ToolBar {
}
}
Keys.onReturnPressed: { sendMessage(event) }
Keys.onEnterPressed: { sendMessage(event) }
Keys.onEscapePressed: {
closeAllTriggered()
}