Skip to content

Commit d7c5cc3

Browse files
committed
UserStatusSelector: set focusPolicy on accept button
otherwise the status text won't be set on macOS as the text box never loses its focus `Qt.StrongFocus` is the default focusPolicy on all platforms except for macOS, there it's `Qt.TabFocus` the other buttons of the UserStatusSelector don't need that focusPolicy as they do not modify the model from values in the view see also: - https://bugreports.qt.io/browse/QTBUG-110295 - https://codebrowser.dev/qt6/qtdeclarative/src/quicktemplates/qquickabstractbutton.cpp.html#_ZN27QQuickAbstractButtonPrivate4initEv Signed-off-by: Jyrki Gadinger <[email protected]>
1 parent e4f5ed4 commit d7c5cc3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/gui/UserStatusSelector.qml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ ColumnLayout {
341341
Layout.fillHeight: true
342342
primary: true
343343
colored: true
344+
focusPolicy: Qt.StrongFocus
344345
text: qsTr("Set status message")
345346
onClicked: userStatusSelectorModel.setUserStatus()
346347
}

0 commit comments

Comments
 (0)