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

Bug 333960

Summary: [Text] Context menu does not open on read-only multiline text widgets
Product: [RT] RAP Reporter: RĂ¼diger Herrmann <ruediger.herrmann>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: rsternberg
Version: unspecified   
Target Milestone: 1.4 M5   
Hardware: All   
OS: All   
Whiteboard:

Description RĂ¼diger Herrmann CLA 2011-01-11 06:43:02 EST
The 'native' context menu (cut/copy/paste) does not show up any more when right-clicking on a multiline read-only text widget
To reproduce:
* open the controls demo
* go to the 'Text' tab
* select MULTI
* deselect Editable
* right-click into the text widget
-> nothing happens

Applies at least to IE 8, Firefox, Chrome
Comment 1 Ralf Sternberg CLA 2011-01-11 08:23:18 EST
It works for me in FF and Chromium. Can you try to reproduce it with the online demo (uses the latest nightly)?

  http://rap.eclipsesource.com/rapdemo/rap?startup=controls
Comment 2 Ralf Sternberg CLA 2011-01-11 10:35:16 EST
Ok, I can reproduce it when I uncheck the "Editable" checkbox (Editable and READ_ONLY seem to interfere in the Text tab). RAP 1.3 shows the same behavior.
Comment 3 Ivan Furnadjiev CLA 2011-01-17 08:44:50 EST
Fixed in CVS HEAD. Removed the check for read-only in Menu.js#getAllowContextMenu.