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

Paste still broken on a Timebox component after ZK-1749

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.6.2
    • 7.0.8
    • Components
    • macOS

    • ZK 8.6.2 S2
    • None

      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

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

              Created:
              Updated:
              Resolved:

                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