public void SetShortcut(ModifierKey modifier, Key key) { string shortcut = KeyMapper.GetShortcut(modifier, key); using GLibString gshortcut = shortcut; Gtk.Menu.SetAccelerator(Handle, gshortcut); }
public void SetShortcut(ModifierKey modifier, Key key) { var shortcut = KeyMapper.GetShortcut(modifier, key); menuItem.ShortcutKeys = shortcut; }
public void SetShortcut(ModifierKey modifier, Key key) { SetShortcut(KeyMapper.GetShortcut(modifier, key)); }