[vlc-devel] [PATCH 2/5] qml: set the default focus to the icon button the within the search box

Pierre Lamot pierre at videolabs.io
Thu Jun 13 18:44:12 CEST 2019


  otherwise no item has the focus and the widget can't be accessed
  using keyboard
---
 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
-- 
2.17.1



More information about the vlc-devel mailing list