internal string GetShortcutDisplayString ()
{
if (this.show_shortcut_keys == false)
return string.Empty;
if (this.Parent == null || !(this.Parent is ToolStripDropDownMenu))
return string.Empty;
string key_string = string.Empty;
if (!string.IsNullOrEmpty (this.shortcut_display_string))
key_string = this.shortcut_display_string;
else if (this.shortcut_keys != Keys.None) {
KeysConverter kc = new KeysConverter ();
key_string = kc.ConvertToString (this.shortcut_keys);
}
return key_string;
}