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

Paste still broken on a Timebox component after ZK-1749

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 7.0.8
    • Fix Version/s: 8.6.2
    • Component/s: Components
    • Labels:
    • Environment:

      macOS

    • gh.sprint.customfield.default.name:
      ZK 8.6.2 S2

      Description

      Steps to Reproduce

      http://zkfiddle.org/sample/2vmlqme/1-BUG-timebox-paste

      • type "11:11:11" and blur
      • copy the value
      • paste to the second timebox

      Current Result

      on macOS only

      • It remains empty. And you can't even simply paste text by Cmd + V.

      All

      • Using the context menu to paste and get the empty result.
      • Copy "1:01:01 AM" and paste, the result will be "1:01:01 PM"
      • Set the second timebox as "1:01:01 AM" and copy "11:11:11 AM" then paste it, the result will be "1:00:00 AM"

      Expected Result

      the value of the second timebox should be set correctly no matter using hotkeys or context menu

      Debug Information

      macOS uses Cmd key, not Ctrl key.
      https://github.com/zkoss/zk/blob/v7.0.2/zul/src/archive/web/js/zul/db/Timebox.js#L393

      Workaround

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rudyhuang rudyhuang
                Reporter:
                rudyhuang rudyhuang
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 hours Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 2 hours
                  1d 2h