From 597633f824759286c113260516372728944ac022 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Thu, 7 Sep 2023 08:15:11 +0200 Subject: [PATCH] Add explicit signal argument --- src/qml/Component/ChatBox/ChatBar.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/qml/Component/ChatBox/ChatBar.qml b/src/qml/Component/ChatBox/ChatBar.qml index b9259ab5b..abb8c8b80 100644 --- a/src/qml/Component/ChatBox/ChatBar.qml +++ b/src/qml/Component/ChatBox/ChatBar.qml @@ -217,7 +217,7 @@ QQC2.Control { quickFormatBar.close() } } - Keys.onEnterPressed: { + Keys.onEnterPressed: event => { if (completionMenu.visible) { completionMenu.complete() } else if (event.modifiers & Qt.ShiftModifier || Kirigami.Settings.isMobile) { @@ -226,7 +226,7 @@ QQC2.Control { root.postMessage(); } } - Keys.onReturnPressed: { + Keys.onReturnPressed: event => { if (completionMenu.visible) { completionMenu.complete() } else if (event.modifiers & Qt.ShiftModifier || Kirigami.Settings.isMobile) { @@ -261,7 +261,7 @@ QQC2.Control { } } } - Keys.onShortcutOverride: { + Keys.onShortcutOverride: event => { // Accept the event only when there was something to cancel. Otherwise, let the event go to the RoomPage. if (cancelButton.visible && event.key === Qt.Key_Escape) { cancelButton.action.trigger();