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

Combowidget components with autodrop trigger popup on non content relevant keys

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.0.5
    • Fix Version/s: 8.5.2
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 8.5.2 S1, ZK 8.5.2 S2

      Description

      Steps to Reproduce

      http://zkfiddle.org/sample/2b6ubc4/1-Combowidget-dropdown-keypress
      run fiddle
      Focus into the combobox
      input "Ctrl+tab" to navigate to the textbox located before the combobox

      Current Result

      Ctrl keypress triggers the combobox autodrop

      Expected Result

      Ctrl keypress shouldn't triggers the combobox autodrop

      Debug Info

      Other non content relevant keypresses also trigger autodrop (alt, numlock, context menu key, volume keys if any, insert key, pause key, etc.)
      Exceptions: these keys do not trigger popup: escape, print screen.

      Pasting content in the input without using keyboard (ex: right click, paste) doesn't open the popup, even though this action modify the value of the combowidget.

      Root Cause

      Current implementation uses onKeyPress listeners, with a set of actions depending on the key value
      Possible improvement could be to use an onInput or onChange listener to listen to changes on the input element, while still listening the specific onKeyPress for utility keys (up down escape, etc)

      Workaround

        Attachments

          Activity

            People

            • Assignee:
              klyvechen klyvechen
              Reporter:
              MDuchemin MDuchemin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 hours
                2h
                Remaining:
                Time Spent - 1 hour Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - 1 hour Remaining Estimate - 1 hour
                1h