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

Bug 331360

Summary: [General] Papyrus Keybindings consume keyPress events, even if no Papyrus editor is active
Product: [Modeling] Papyrus Reporter: Alexander Nyßen <nyssen>
Component: CoreAssignee: Vincent Lorenzo <vincent.lorenzo>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: 0.7.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Alexander Nyßen CLA 2010-11-29 12:22:33 EST
The Papyrus keybindings for SWT.CTRL + SWT.ARROW_LEFT or CTRL + ARROW_RIGHT seem to consume the respective keypress events on SWT.KeyDown, even if no Papyrus editor is opened.

To reproduce, you may use the GEF logic editor example. In case the Papyrus key-binding is disabled, the editor receives the CTRL + SWT.ARROW_LEFT and CTRL + SWT.ARROW_RIGHT events and uses it to traverse edit parts in the viewer. In case the Papyrus keybinding is active, the respective keypress event does not reach the FigureCanvas in the LogicEditor (I debugged that keyPressed is not called and only keyReleased is forwarded), as the event seems to be consumed before.
Comment 1 Vincent Lorenzo CLA 2011-01-05 10:53:53 EST
Currently, if you want to have the correct behavior with GEF, you can go to the Eclipse Preferences ->  General -> Key. 
Here you search the Align Left (or Right) Command and in the field When :  "In Windows", replace "In Window" by Diagram Editing. 
Thank you for the bug.
Comment 2 Vincent Lorenzo CLA 2011-01-05 10:57:29 EST
Done in R3612 : Context Added for each keybinding
Comment 3 Vincent Lorenzo CLA 2011-07-11 04:42:44 EDT
Can I closed this bug?
Comment 4 Vincent Lorenzo CLA 2011-07-27 04:56:01 EDT
This bug can be marked as closed.