feat: allow sending messages using Enter Key (numeric keypad)
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user