Uploaded image for project: 'Keikai'
  1. Keikai
  2. KEIKAI-418

keikai invokes onClipboardPaste listener twice unexpectedly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 5.5.0
    • Fix Version/s: 5.7.0
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None

      Description

      Steps to Reproduce

          <spreadsheet id="ss" hflex="1" vflex="1"
                       showFormulabar="true" showContextMenu="true" showToolbar="true"
                       showSheetbar="true" showSheetTabContextMenu="true" maxVisibleRows="100" maxVisibleColumns="40"
                       onCellSelection="" onClipboardPaste="System.out.println(event)"/>
      

      1. input a at A1
      2. press ctrl+c to copy A1
      3. press ctrl+v to paste at A2
      check the server console

      Current Result

      server console prints 2 onClipboardPaste event

      Expected Result

      server console prints 1 onClipboardPaste event

      Debug Information

      1. if no onCellSelection listener is registered, this bug doesn't happen.
      2. the bug only happens at the first pasting. If you paste again, keikai will invoke the onClipboardPaste listener once which is expected.

      Workaround

      remove onCellSelection listener

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              wenninghsu wenninghsu
              Reporter:
              hawk hawk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: