feat: allow sending messages using Enter Key (numeric keypad)
This commit is contained in:
@@ -113,7 +113,7 @@ ToolBar {
|
|||||||
onTriggered: currentRoom.sendTypingNotification(true)
|
onTriggered: currentRoom.sendTypingNotification(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
Keys.onReturnPressed: {
|
function sendMessage(event) {
|
||||||
if (isCompleting) {
|
if (isCompleting) {
|
||||||
chatBar.complete();
|
chatBar.complete();
|
||||||
|
|
||||||
@@ -127,6 +127,9 @@ ToolBar {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Keys.onReturnPressed: { sendMessage(event) }
|
||||||
|
Keys.onEnterPressed: { sendMessage(event) }
|
||||||
|
|
||||||
Keys.onEscapePressed: {
|
Keys.onEscapePressed: {
|
||||||
closeAllTriggered()
|
closeAllTriggered()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user