Public bug reported:

Items outside of a ListView are skipped when using keyboard navigation
to change the focus. However, a ListItem inside a ListView takes the
focus even when it is disabled, but it does not show the focus frame
when focused.

For example, execute this QML program:

import QtQuick 2.4
import Ubuntu.Components 1.3

Item {
    width: units.gu(50)
    height: units.gu(50)

    ListView {
        anchors.fill: parent
        delegate: ListItem {
            enabled: index != 2
            Label {
                anchors.centerIn: parent
                text: parent.enabled ? "enabled" : "disabled"
            }
        }
        model: 5
    }
}

Press TAB to focus on the ListView. Then press the down-cursor-key twice
to move the focus down inside the ListView. The focus will be on the
disabled item, but not focus frame is visible This is confusing for the
user since the focus seems to disappear, and the Item where the focus
seems to be (although invisible) cannot be triggered because it is
disabled.

Note: When fixing this bug, also test the solution for Horizontal
ListViews (and RightToLeft and BottomToTop directions), since I
encountered this bug in the scrolling toolbar (in progress) that has a
Horizontal, RightToLeft ListView.

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: Undecided
         Status: Confirmed

** Description changed:

  Items outside of a ListView are skipped when using keyboard navigation
  to change the focus. However, a ListItem inside a ListView takes the
  focus even when it is disabled, but it does not show the focus frame
  when focused.
  
  For example, execute this QML program:
  
  import QtQuick 2.4
  import Ubuntu.Components 1.3
  
  Item {
-     width: units.gu(50)
-     height: units.gu(50)
+     width: units.gu(50)
+     height: units.gu(50)
  
-     ListView {
-         anchors.fill: parent
-         delegate: ListItem {
-             enabled: index != 2
-             Label {
-                 anchors.centerIn: parent
-                 text: parent.enabled ? "enabled" : "disabled"
-             }
-         }
-         model: 5
-     }
+     ListView {
+         anchors.fill: parent
+         delegate: ListItem {
+             enabled: index != 2
+             Label {
+                 anchors.centerIn: parent
+                 text: parent.enabled ? "enabled" : "disabled"
+             }
+         }
+         model: 5
+     }
  }
  
  Press TAB to focus on the ListView. Then press the down-cursor-key twice
  to move the focus down inside the ListView. The focus will be on the
  disabled item, but not focus frame is visible This is confusing for the
  user since the focus seems to disappear, and the Item where the focus
  seems to be (although invisible) cannot be triggered because it is
  disabled.

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1611327

Title:
  Disabled ListItem inside ListView takes focus but does not show focus
  ring

Status in ubuntu-ui-toolkit package in Ubuntu:
  Confirmed

Bug description:
  Items outside of a ListView are skipped when using keyboard navigation
  to change the focus. However, a ListItem inside a ListView takes the
  focus even when it is disabled, but it does not show the focus frame
  when focused.

  For example, execute this QML program:

  import QtQuick 2.4
  import Ubuntu.Components 1.3

  Item {
      width: units.gu(50)
      height: units.gu(50)

      ListView {
          anchors.fill: parent
          delegate: ListItem {
              enabled: index != 2
              Label {
                  anchors.centerIn: parent
                  text: parent.enabled ? "enabled" : "disabled"
              }
          }
          model: 5
      }
  }

  Press TAB to focus on the ListView. Then press the down-cursor-key
  twice to move the focus down inside the ListView. The focus will be on
  the disabled item, but not focus frame is visible This is confusing
  for the user since the focus seems to disappear, and the Item where
  the focus seems to be (although invisible) cannot be triggered because
  it is disabled.

  Note: When fixing this bug, also test the solution for Horizontal
  ListViews (and RightToLeft and BottomToTop directions), since I
  encountered this bug in the scrolling toolbar (in progress) that has a
  Horizontal, RightToLeft ListView.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1611327/+subscriptions

-- 
Mailing list: https://launchpad.net/~ubuntu-sdk-bugs
Post to     : ubuntu-sdk-bugs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-sdk-bugs
More help   : https://help.launchpad.net/ListHelp

Reply via email to