Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 282837

Summary: [Text] Copy/paste (Ctrl+C/V) is broken in Firefox when KeyEvents are active
Product: [RT] RAP Reporter: Björn Fischer <b.fischer>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: asen, nick.irvine.bugzilla
Version: 1.3   
Target Milestone: 1.3 M2   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Proposed patch none

Description Björn Fischer CLA 2009-07-08 08:53:55 EDT
When a TextCellEditor is active, the copying/pasting of text is possible. In IE 7 this works also through the mnemonics ctrl+c and ctrl+v. In Firefox 3 the copy/paste works only via the menu items (Edit->copy/paste). It should be the same behaviour in both browsers.
Comment 1 Asen Draganov CLA 2009-07-24 04:37:57 EDT
Some more findings: 
- The reported issue has been tested for existence outside the TextCellEditor (for example in the Text field in Controls Demo Text tab). The result is that the
copy/paste works fine also through the mnemonics ctrl+c and ctrl+v. The browser version is Firefox 3.5.1. Thus, most probably the problem is somewhere in the JFace code.
- Everything works fine in webkit browsers - Safari and Google Chrome.
Comment 2 Nick Irvine CLA 2009-08-27 00:15:39 EDT
This is a very annoying problem.

I noticed that in FF the element has style -moz-user-select:none;
As per https://developer.mozilla.org/en/CSS/-moz-user-select, this means that the element appears as if it is not selectable.
Comment 3 Jordan Yakovchev CLA 2009-09-24 06:36:48 EDT
Created attachment 147987 [details]
Proposed patch
Comment 4 Björn Fischer CLA 2009-09-24 08:38:25 EDT
Hi Jordan,
though I have not tested it, thanks for the patch! 

@Rüdiger: And thanks for integrating it into M2 :)

Best regards

Björn
Comment 5 Rüdiger Herrmann CLA 2009-09-24 17:07:59 EDT
Applied patch to CVS HEAD