mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Ensure ⌘Z / ⇧⌘Z are not sent to file browser when it does not have focus
Since the context menu is outside the normal view/responder hierarchy, it can receive key events even when file browser is not the active view.
This commit is contained in:
@@ -488,8 +488,8 @@ static NSMutableIndexSet* MutableLongestCommonSubsequence (NSArray* lhs, NSArray
|
||||
{ /* -------- */ },
|
||||
{ @"Finder Tag", .tag = kRequiresSelectionTag, .ref = &finderTagsMenuItem },
|
||||
{ /* -------- */ },
|
||||
{ @"Undo", @selector(undo:), @"z" },
|
||||
{ @"Redo", @selector(redo:), @"z", NSEventModifierFlagCommand|NSEventModifierFlagShift },
|
||||
{ @"Undo", @selector(undo:) },
|
||||
{ @"Redo", @selector(redo:) },
|
||||
{ /* -------- */ },
|
||||
};
|
||||
|
||||
@@ -502,6 +502,8 @@ static NSMutableIndexSet* MutableLongestCommonSubsequence (NSArray* lhs, NSArray
|
||||
{ @selector(toggleQuickLookPreview:), " " },
|
||||
{ @selector(copy:), "@c" },
|
||||
{ @selector(copyAsPathname:), "~@c" },
|
||||
{ @selector(undo:), "@z" },
|
||||
{ @selector(redo:), "@Z" },
|
||||
};
|
||||
|
||||
for(NSMenuItem* menuItem in menu.itemArray)
|
||||
|
||||
Reference in New Issue
Block a user