History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-5246
Type: Bug Bug
Status: New New
Priority: P0 P0
Assignee: Max Carlson
Reporter: yuwen fang
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

inputtext copy, paste not working in Firefox

Created: 12/Dec/07 11:45 PM   Updated: 22/Oct/08 01:49 PM
Component/s: Components - base
Affects Version/s: 4.0.5WaffleCone
Fix Version/s: MisterDonut (4.2 Final)

Time Tracking:
Not Specified

Severity: Minor
Runtime: N/A
Flags: Support
Fix in hand: False


 Description  « Hide
==== customer issue ====

We have encountered a problem with copy and paste function in inputtext.
We used Ctrl-C to copy
and Ctrl-V to paste. We found that the copy and paste function in
"Firefox" it's not working 100% of the
time. For example, when we copy, even after "making sure" we did pressed
the Ctrl-C to copy, when
pasting, we might still pasted the text that we have copied previously.
(ie. the copy didn't take place)

The following is a sample that I've put together, it's basically just 2
inputtext. Load in in firefox. And just
start copy and pasting strings between the boxes. What I did is I copy
some text in the 1st input box and
paste it in the 2nd, then copy the 2nd one and paste it back to first, etc
etc. Just make sure you know
what you are copy and pasting and you should encounter something funcky
during the procress.

http://www.openlaszlo.org/lps/laszlo-explorer/editor.jsp?src=docs/guide/programs/laszlo_basics-$1.lzx

<canvas width="500" height="150" bgcolor="green">
  <class name="mytext" width="150" height="20" bgcolor="gray">
    <attribute name="text" type="text"/>
    <inputtext resizable="false" text="${parent.text}" bgcolor="white"
      x="1" y="1"
      width="$once{parent.width-2}" height="$once{parent.height-2}"/>
  </class>
  <simplelayout axis="y"/>
  <mytext>123</mytext>
  <mytext>abc</mytext>
</canvas>

Any idea how we can go this fix?



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Philip Romanik - 20/Jun/08 11:35 AM
I'm not sure we can fix this. I've seen it in FF2/swf and FF2/dhtml. I modified the app slightly to display the last key and I have seen where the app sees Ctrl-C/Ctrl-V but the wrong item is pasted.

<canvas width="500" height="150" bgcolor="green">
  <class name="mytext" width="150" height="20" bgcolor="gray">
    <attribute name="text" type="text"/>
    <inputtext resizable="false" text="${parent.text}" bgcolor="white"
      x="1" y="1"
      width="$once{parent.width-2}" height="$once{parent.height-2}">
      <handler name="onkeydown" args="k">
        canvas.message.setText(k);
      </handler>
    </inputtext>
  </class>
  <simplelayout axis="y"/>
  <text name="message"/>
  <mytext>123</mytext>
  <mytext>abc</mytext>
</canvas>

Philip Romanik - 24/Jun/08 01:30 PM
For Release Notes:

There are reports that FireFox 2.0 has occasional issues with copy/paste failing using keyboard shortcuts. If the copy (Ctrl-C) does not occur, when you paste (Ctrl-V) information into the browser, the previous contents of the clipboard is pasted instead.

Amy Muntz - 27/Jun/08 01:42 PM
Added to release notes. Deferring real fix to DingDong.