Add NSOtherMouseUp to OakIsAlternateKeyOrMouseEvent

To allow the alternate behavior (“close other”) when clicking a tab with the middle mouse button.
This commit is contained in:
Koen Punt
2015-03-22 17:43:06 +01:00
committed by Allan Odgaard
parent 436068cbb7
commit 808aaabc44

View File

@@ -19,7 +19,7 @@ void OakRunIOAlertPanel (char const* format, ...)
BOOL OakIsAlternateKeyOrMouseEvent (NSUInteger flags, NSEvent* anEvent)
{
return ([anEvent type] == NSLeftMouseUp || [anEvent type] == NSKeyDown) && (([anEvent modifierFlags] & flags) == flags);
return ([anEvent type] == NSLeftMouseUp || [anEvent type] == NSOtherMouseUp || [anEvent type] == NSKeyDown) && (([anEvent modifierFlags] & flags) == flags);
}
@interface OakSheetCallbackDelegate : NSObject