예제 #1
0
        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;
        }
예제 #3
0
 public void SetShortcut(ModifierKey modifier, Key key)
 {
     SetShortcut(KeyMapper.GetShortcut(modifier, key));
 }