public Shortcut GetShortcut(string actionId) { var def = defs.TryGetActionDefById(actionId); if (def == null) { return(null); } actionId = HandleTabOverrides(actionId); var text = GetText(def.Text, actionId); if (string.IsNullOrEmpty(text)) { return(null); } statistics.OnAction(actionId); var shortcut = new Shortcut { ActionId = actionId, Text = text, Path = GetPath(def), CurrentScheme = actionShortcuts.CurrentScheme, Multiplier = statistics.Multiplier }; SetShortcuts(shortcut, def); return(shortcut); }