mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Use helper for bundle item’s key equivalent
This is to allow a bundle item to display another key than the one assigned to the item, e.g. when the bundle item is matched by a proxy item it should show that item’s key equivalent.
This commit is contained in:
@@ -65,7 +65,7 @@ OAK_DEBUG_VAR(BundleMenu);
|
||||
default:
|
||||
{
|
||||
NSMenuItem* menuItem = [aMenu addItemWithTitle:[NSString stringWithCxxString:name_with_selection(*item, hasSelection)] action:@selector(doBundleItem:) keyEquivalent:@""];
|
||||
[menuItem setKeyEquivalentCxxString:(*item)->value_for_field(bundles::kFieldKeyEquivalent)];
|
||||
[menuItem setKeyEquivalentCxxString:key_equivalent(*item)];
|
||||
[menuItem setTabTriggerCxxString:(*item)->value_for_field(bundles::kFieldTabTrigger)];
|
||||
[menuItem setRepresentedObject:[NSString stringWithCxxString:(*item)->uuid()]];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user