mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
Disabled NSTextView's popup menus
git-svn-id: http://macvim.googlecode.com/svn/trunk@114 96c4425d-ca35-0410-94e5-3396d5c13a8f
This commit is contained in:
+5
-7
@@ -240,15 +240,13 @@
|
||||
[self mouseDragged:event];
|
||||
}
|
||||
|
||||
#if 0
|
||||
- (void)menuForEvent:(NSEvent *)event
|
||||
- (NSMenu*)menuForEvent:(NSEvent *)event
|
||||
{
|
||||
// TODO: Enabling this causes a crash at the moment. Why?
|
||||
//
|
||||
// Called when user Ctrl-clicks in the view
|
||||
[self mouseDown:event];
|
||||
// HACK! Return nil to disable NSTextView's popup menus (Vim provides its
|
||||
// own). Called when user Ctrl-clicks in the view (this is already handled
|
||||
// in rightMouseDown:).
|
||||
return nil;
|
||||
}
|
||||
#endif
|
||||
|
||||
- (NSArray *)acceptableDragTypes
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user