mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
This is a regression from 73b4c33f05.
Because we were only tracking wether the left mouse button went up after a contextual menu (which is opened with the right mouse)
would only close after the second left mouse up.
18 lines
362 B
Plaintext
18 lines
362 B
Plaintext
@import <AppKit/CPView.j>
|
|
|
|
@implementation MyView : CPView
|
|
{
|
|
}
|
|
|
|
- (CPMenu)menu
|
|
{
|
|
var menu = [[CPMenu alloc] initWithTitle:@""];
|
|
|
|
[menu addItemWithTitle:@"Item 1" action:nil keyEquivalent:nil];
|
|
[menu addItemWithTitle:@"Item 2" action:nil keyEquivalent:nil];
|
|
[menu addItemWithTitle:@"Item 3" action:nil keyEquivalent:nil];
|
|
|
|
return menu;
|
|
}
|
|
|
|
@end |