Closes #926. Don't display a menu when a CPPopUpButton is right clicked, especially not a broken one.

This commit is contained in:
Alexander Ljungberg committed 2010-10-09 21:54:19 -04:00
1 parent e62af384ea
commit 0bd03b8d58
1 file changed
+6 -1
+6 -1
View File
@@ -662,7 +662,7 @@ CPPopUpButtonStatePullsDown = CPThemeState("pulls-down");
location = CGPointMake(CGRectGetMinX(contentRect) - standardLeftMargin, 0.0);
minimumWidth += standardLeftMargin;
// To ensure the selected item is highlighted correctly, unset the highlighted item
[menu _highlightItemAtIndex:CPNotFound];
}
@@ -702,6 +702,11 @@ CPPopUpButtonStatePullsDown = CPThemeState("pulls-down");
*/
}
- (void)rightMouseDown:(CPEvent)anEvent
{
// Disable standard CPView behaviour which incorrectly displays the menu as a 'context menu'.
}
- (void)_popUpItemAction:(id)aSender
{
[self sendAction:[self action] to:[self target]];