mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
a double-click to dismiss a menu on a folder would cause us to popup
the menu again. check for that case (bug 162367)
This commit is contained in:
parent
768c965b07
commit
77c7cd9bd1
@ -186,11 +186,14 @@
|
||||
|
||||
-(void)mouseDown:(NSEvent*)aEvent
|
||||
{
|
||||
if (mIsFolder) {
|
||||
// pop up a "context menu" on folders showing their contents. we check
|
||||
// for single click to fix issues with dblclicks (bug 162367)
|
||||
if (mIsFolder && [aEvent clickCount] == 1) {
|
||||
nsCOMPtr<nsIContent> content(do_QueryInterface(mElement));
|
||||
NSMenu* menu = BookmarksService::LocateMenu(content);
|
||||
[NSMenu popUpContextMenu: menu withEvent: aEvent forView: self];
|
||||
} else
|
||||
}
|
||||
else
|
||||
[super mouseDown:aEvent];
|
||||
}
|
||||
|
||||
|
@ -186,11 +186,14 @@
|
||||
|
||||
-(void)mouseDown:(NSEvent*)aEvent
|
||||
{
|
||||
if (mIsFolder) {
|
||||
// pop up a "context menu" on folders showing their contents. we check
|
||||
// for single click to fix issues with dblclicks (bug 162367)
|
||||
if (mIsFolder && [aEvent clickCount] == 1) {
|
||||
nsCOMPtr<nsIContent> content(do_QueryInterface(mElement));
|
||||
NSMenu* menu = BookmarksService::LocateMenu(content);
|
||||
[NSMenu popUpContextMenu: menu withEvent: aEvent forView: self];
|
||||
} else
|
||||
}
|
||||
else
|
||||
[super mouseDown:aEvent];
|
||||
}
|
||||
|
||||
|
@ -186,11 +186,14 @@
|
||||
|
||||
-(void)mouseDown:(NSEvent*)aEvent
|
||||
{
|
||||
if (mIsFolder) {
|
||||
// pop up a "context menu" on folders showing their contents. we check
|
||||
// for single click to fix issues with dblclicks (bug 162367)
|
||||
if (mIsFolder && [aEvent clickCount] == 1) {
|
||||
nsCOMPtr<nsIContent> content(do_QueryInterface(mElement));
|
||||
NSMenu* menu = BookmarksService::LocateMenu(content);
|
||||
[NSMenu popUpContextMenu: menu withEvent: aEvent forView: self];
|
||||
} else
|
||||
}
|
||||
else
|
||||
[super mouseDown:aEvent];
|
||||
}
|
||||
|
||||
|
@ -186,11 +186,14 @@
|
||||
|
||||
-(void)mouseDown:(NSEvent*)aEvent
|
||||
{
|
||||
if (mIsFolder) {
|
||||
// pop up a "context menu" on folders showing their contents. we check
|
||||
// for single click to fix issues with dblclicks (bug 162367)
|
||||
if (mIsFolder && [aEvent clickCount] == 1) {
|
||||
nsCOMPtr<nsIContent> content(do_QueryInterface(mElement));
|
||||
NSMenu* menu = BookmarksService::LocateMenu(content);
|
||||
[NSMenu popUpContextMenu: menu withEvent: aEvent forView: self];
|
||||
} else
|
||||
}
|
||||
else
|
||||
[super mouseDown:aEvent];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user