Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4497

searchbox: improve clearing selection, key shortcut / clear icon

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Normal Normal
    • 9.5.0
    • 9.0.0
    • Components
    • Security Level: Jimmy
    • ZK 9.5.0 S1
    • None

      Steps to Reproduce

      <zk>
        <zscript>
          ListModelList model = new ListModelList();
          model.add("abc");
          model.add("bcd");
        </zscript>
        <searchbox model="${model}"/>
      </zk>
      

      select a value, try to unselect it

      Current Result

      mouse controls are a bit non intuitive (has to click the element again to unselect it)
      no keyboard shortcut

      Expected Result

      "X" icon to clear the current value
      clear when pressing the delete/backspace key (when the box is focussed, not open)

      Debug Information

      Workaround

      http://zkfiddle.org/sample/165gk5i/1-workaround-clear-searchbox-model

            rudyhuang rudyhuang
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified