[vlc-commits] qml: set the default focus to the icon button the within the search box
Pierre Lamot
git at videolan.org
Mon Jun 17 11:25:37 CEST 2019
vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Thu Jun 13 18:44:12 2019 +0200| [009bc3a9b88cf87f7ecb60e0792c2507c80b0c7e] | committer: Jean-Baptiste Kempf
qml: set the default focus to the icon button the within the search box
otherwise no item has the focus and the widget can't be accessed
using keyboard
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=009bc3a9b88cf87f7ecb60e0792c2507c80b0c7e
---
modules/gui/qt/qml/utils/SearchBox.qml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/gui/qt/qml/utils/SearchBox.qml b/modules/gui/qt/qml/utils/SearchBox.qml
index 0871cc9bf6..9a14637208 100644
--- a/modules/gui/qt/qml/utils/SearchBox.qml
+++ b/modules/gui/qt/qml/utils/SearchBox.qml
@@ -99,6 +99,8 @@ Utils.NavigableFocusScope {
size: VLCStyle.icon_normal
text: VLCIcons.topbar_filter
+ focus: true
+
onClicked: {
if (searchBox.text == "")
expanded = !expanded
More information about the vlc-commits
mailing list