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

colorbox palette/picker input: copy/paste/home/end not working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.5.2
    • 8.5.1.2
    • Components
    • Security Level: Jimmy
    • None
    • ZK 8.5.2 S1, ZK 8.5.2 S2

      Steps to Reproduce

      <colorbox/>
      
      1. open the popup (colorpalette or colorpicker)
      2. focus the hex input field
      3. try to copy/paste/home/end

      Current Result

      most keys besides the allowed characters #0-9A-F have no effect on both inputs
      copy/paste only possible via mouse rightclick

      Expected Result

      preserve default behavior of input control

      Root Cause

      doKeyDown stops most key events

      Workaround

      overide the doKetDown_ function to allow default key behavior
      handle input sanitation in an onInput event handler
      see colorbox-paste.zul

            CharlesQiu CharlesQiu
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours
                4h