mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-18 12:17:50 -06:00
Fix tab order after expanding categories or using search
This reimplements the behavior of pressing tab/backtab to force the correct order of items in the listview.
This commit is contained in:
parent
8917762ed5
commit
0f9cfa0304
8 changed files with 93 additions and 2 deletions
|
@ -11,13 +11,13 @@ import UM 1.2 as UM
|
|||
SettingItem
|
||||
{
|
||||
id: base
|
||||
property var focusItem: control
|
||||
|
||||
contents: MouseArea
|
||||
{
|
||||
id: control
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
activeFocusOnTab: true
|
||||
|
||||
property bool checked:
|
||||
{
|
||||
|
@ -62,6 +62,15 @@ SettingItem
|
|||
propertyProvider.setPropertyValue("value", !checked);
|
||||
}
|
||||
|
||||
Keys.onTabPressed:
|
||||
{
|
||||
base.setActiveFocusToNextSetting(true)
|
||||
}
|
||||
Keys.onBacktabPressed:
|
||||
{
|
||||
base.setActiveFocusToNextSetting(false)
|
||||
}
|
||||
|
||||
onActiveFocusChanged:
|
||||
{
|
||||
if(activeFocus)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue