mirror of
https://github.com/textmate/textmate.git
synced 2026-01-15 01:38:02 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user