Skip to content

Commit

Permalink
Add explicit signal argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Montel authored and TobiasFella committed Sep 7, 2023
1 parent 65da416 commit 597633f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/qml/Component/ChatBox/ChatBar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 597633f

Please sign in to comment.