Summary: | Select item form context menu by mouse right click brings the menu again | ||
---|---|---|---|
Product: | [RT] RAP | Reporter: | Penka <pveleva> |
Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | minor | ||
Priority: | P3 | CC: | tbuschto |
Version: | 1.4 | Keywords: | ui |
Target Milestone: | 1.5 M3 | ||
Hardware: | PC | ||
OS: | All | ||
Whiteboard: |
Description
Penka
2011-10-27 17:01:28 EDT
Reproducible with CVS HEAD as well. This is my theory of what happens: 1. browser fires mousedown, TreeRow gains focus 2. browser fires mouseup, contextmenu -> menu opens 3. browser fires mousedown, mouseup -> menu closes 4. Now the browser should fire the contextmenu event (as a direct result of the mouseup with a right mouse button). However, the element that was clicked on is no longer in DOM (the menu). It therefore falls back on the last focused element: The TreeRow. The Menu opens again. If this is correct, the solution would be to somehow prevent the second contextmenu event from beeing fired, either on the DOM or on the widget layer. Fixed in CVS HEAD by changing menu detection from "contextmenu" to "mouseup". However, this fix is not suit suitable for the 1.4 branch. Tim, you mark this bug as "sr142?". Do you have a patch for the maintenance branch? Will not be fixed in 1.4.2 since the fix cant be ported easily, and the issue is not a critical one. |