Oliver Oyston created PIVOT-902:
-----------------------------------

             Summary: Right-click context menu should be shown if a context 
menu is already being displayed (the original popup should be closed)
                 Key: PIVOT-902
                 URL: https://issues.apache.org/jira/browse/PIVOT-902
             Project: Pivot
          Issue Type: Improvement
    Affects Versions: 2.0.2
            Reporter: Oliver Oyston
            Priority: Minor


The processMouseEvent event in ApplicationContext does not allow the showing of 
a menuPopup / context menu if one is already showing - there does not seem to 
be an easy way to work around this imposed limitation. The precondition for 
entering the popup logic seems to be:

menuPopup == null && button == Mouse.Button.RIGHT  && !consumed

If the menuPopup is not null, i.e. a popup is already showing, then I think 
that the existing popup should be closed and the new one shown. This seems to 
be the behavior in most non-Pivot applications.

An example of where this problem is apparent is with tree views: when a context 
menu is showing, a right-click on another node does not show that node's 
context menu. The right-click closes the original menu and then an additional 
right-click is required to show the new context menu.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to