Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-744

ListView with SelectMode.Multi does not allow deselection when all elements are selected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0
    • 2.0.1
    • wtk-terra
    • None

    Description

      If you select all items in a ListView that allows multiple selection, there is not way to deselect using the keyboard. One would expect that releasing shift and moving the arrows would revert to selecting a single element, but this is not the case. The supplied patch allows deselection in the following manner:

      1. If you select all elements with the keyboard "downwards", release shift and then press Keyboard.KeyCode.UP, the "next last" element in the list is selected.
      2. If you select all elements with the keyboard "upwards", release shift and then press Keyboard.KeyCode.DOWN, the "next first" element in the list is selected.

      I tried to take enabled state into account when finding the approproate element to select, so the patch may be more involved than nessecary.

      I tested against ScriptApplication -src=-src=/org/apache/pivot/demos/lists/multi_select.bxml.

      Attachments

        1. TerraListViewSkinDeselect.patch
          3 kB
          Edvin Syse
        2. pivot744_patch2.patch
          2 kB
          Sandro Martini

        Issue Links

          Activity

            People

              smartini Sandro Martini
              edvin Edvin Syse
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0.25h
                  0.25h
                  Remaining:
                  Remaining Estimate - 0.25h
                  0.25h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified