Skip to content
Snippets Groups Projects
Commit 8a69270b authored by Fatih Uzunoğlu's avatar Fatih Uzunoğlu Committed by Jean-Baptiste Kempf
Browse files

qml: set activeFocusOnTab accordingly

parent 72f38f5c
No related branches found
No related tags found
Loading
Pipeline #294628 passed with stages
in 28 minutes and 4 seconds
......@@ -188,6 +188,8 @@ Control {
Navigation.parentItem: root
Navigation.downItem: playerControlLayout
activeFocusOnTab: true
Keys.onPressed: {
Navigation.defaultKeyAction(event)
}
......
......@@ -17,6 +17,7 @@
*****************************************************************************/
import QtQuick 2.11
import QtQuick.Controls 2.4
import QtQuick.Templates 2.4 as T
import QtQuick.Layouts 1.11
import QtQml.Models 2.11
......@@ -158,6 +159,9 @@ FocusScope {
// so it can be set here unlike leftItem and rightItem:
item.Navigation.parentItem = controlLayout
if (item instanceof Control || item instanceof T.Control)
item.activeFocusOnTab = true
// FIXME: Do we really need to enforce a defaultSize ?
if (item.size !== undefined)
item.size = Qt.binding(function() { return defaultSize; })
......
......@@ -121,6 +121,8 @@ FocusScope {
Accessible.role: Accessible.Table
activeFocusOnTab: true
// Events
Component.onCompleted: flickable.layout(true)
......
......@@ -73,6 +73,8 @@ FadingEdgeListView {
focus: true
activeFocusOnTab: true
//key navigation is reimplemented for item selection
keyNavigationEnabled: false
......@@ -300,6 +302,8 @@ FadingEdgeListView {
visible: (root.orientation === ListView.Horizontal && !(root.atXBeginning))
onClicked: root.prevPage()
activeFocusOnTab: false
}
RoundButton {
......@@ -313,5 +317,7 @@ FadingEdgeListView {
visible: (root.orientation === ListView.Horizontal && !(root.atXEnd))
onClicked: root.nextPage()
activeFocusOnTab: false
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment