Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Discover
Commits
fa2837db
Commit
fa2837db
authored
May 01, 2021
by
Carl Schwan
🚴
Browse files
Improve tab focus of the application lists
parent
0ee16d66
Changes
3
Hide whitespace changes
Inline
Side-by-side
discover/qml/ApplicationsListPage.qml
View file @
fa2837db
...
...
@@ -104,6 +104,11 @@ DiscoverPage {
Kirigami.CardsListView
{
id
:
apps
activeFocusOnTab
:
true
currentIndex
:
-
1
onActiveFocusChanged
:
if
(
activeFocus
&&
currentIndex
===
-
1
)
{
currentIndex
=
0
;
}
section.delegate
:
Label
{
text
:
section
...
...
@@ -121,7 +126,6 @@ DiscoverPage {
apps
.
currentIndex
=
-
1
}
}
currentIndex
:
-
1
delegate
:
ApplicationDelegate
{
application
:
model
.
application
compact
:
!
applicationWindow
().
wideScreen
...
...
discover/qml/BrowsingPage.qml
View file @
fa2837db
...
...
@@ -94,7 +94,11 @@ DiscoverPage
Kirigami.CardsListView
{
id
:
apps
model
:
FeaturedModel
{}
activeFocusOnTab
:
true
Component.onCompleted
:
apps
.
bottomMargin
=
Kirigami
.
Units
.
largeSpacing
*
2
onActiveFocusChanged
:
if
(
activeFocus
&&
currentIndex
===
-
1
)
{
currentIndex
=
0
;
}
currentIndex
:
-
1
delegate
:
ApplicationDelegate
{
application
:
model
.
application
...
...
discover/qml/InstallApplicationButton.qml
View file @
fa2837db
...
...
@@ -84,8 +84,7 @@ ConditionalLoader
enabled
:
application
.
state
!==
AbstractResource
.
Broken
text
:
compact
?
""
:
root
.
text
icon.name
:
compact
?
root
.
action
.
icon
.
name
:
""
focus
:
true
activeFocusOnTab
:
false
onClicked
:
root
.
click
()
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment