| Summary: | [Menu] overrides the focus/active child when disappear | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Markus Krüger <webmaster> | ||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P2 | CC: | dev, v.althaus | ||||
| Version: | 1.3 | ||||||
| Target Milestone: | 2.2 M3 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Markus Krüger
Created attachment 180933 [details]
Workbench Demo patch to reproduce the problem
I did not need to change the workbench demo to reproduce the behavior. Is there a reasen for the patch? Markus, the patch add a menu to the Tree in DemoTreeViewPart. How to reproduce it without a menu on a Tree? You are so right, Ivan. I had the bug earlier and when I posted it I could not see any changes on my project anymore as I already reverted it, I guess :-( I'm sorry for the trouble. I've just tested a little bit. The problem exists with 1.3 (1.3.1) release too. In case of opened menu we have wrong values in the request parameters org.eclipse.swt.events.controlActivated and activeControl. The situation is the following: 1. When you open a context menu the current active and focused child are save in the variables _lastActive and _lastFocus (see Menu.js#_beforeAppear -> _makeActive). 2. When you click (left or right) somewhere in the application (with already opened context menu), first the new focus/active child is set on mouse down and than the menu is about to disappear. But in Menu.js#_beforeDisappear the _makeInactive is called, witch restore the focus/active child to the saved one. Thus, the focus/active child set by the mouse are lost (overriten by the saved one). As we have plans to rework the mouse event handling (EventHandler.js), this bug should be fixed with this rework. *** Bug 419839 has been marked as a duplicate of this bug. *** Fixed in master with commit 34c83d2967652738a0617744742fb9cc2451f275. *** Bug 422578 has been marked as a duplicate of this bug. *** |