static public AccelKey Parse(string input, AccelFlags flags) { uint key; ModifierType modifier; Accelerator.Parse(input, out key, out modifier); return(new AccelKey((Gdk.Key)key, modifier, flags)); }
private void AddAccelerator(uint key, ModifierType modifiers, AccelFlags accelFlags, EventHandler handler) { MenuItem menuItem = new MenuItem(); menuItem.AddAccelerator("activate", this.accelGroup, key, modifiers, accelFlags); menuItem.Activated += handler; menuItem.Show(); this.hiddenMenu.Append(menuItem); }
public AcceleratorItem(string s, string p, AccelFlags f) : this(s, AccelKeyExtensions.Parse(p, f)) { }
public AcceleratorItem(string s, Gdk.Key k, Gdk.ModifierType m, AccelFlags f) : this(s, new AccelKey(k, m, f)) { }