Exemplo n.º 1
0
		void DropdownMenu_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
		{
			Input.ModifierKey mods = new Input.ModifierKey();
			
			if ((Control.ModifierKeys & Keys.Shift) != 0)
				mods |= Input.ModifierKey.Shift;
			if ((Control.ModifierKeys & Keys.Control) != 0)
				mods |= Input.ModifierKey.Control;
			if ((Control.ModifierKeys & Keys.Alt) != 0)
				mods |= Input.ModifierKey.Alt;

			Input.LogicalButton lb = new Input.LogicalButton(e.ClickedItem.Text,mods);

			widget.SetBinding(lb.ToString());
		}
Exemplo n.º 2
0
        void DropdownMenu_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            Input.ModifierKey mods = new Input.ModifierKey();

            if ((Control.ModifierKeys & Keys.Shift) != 0)
            {
                mods |= Input.ModifierKey.Shift;
            }
            if ((Control.ModifierKeys & Keys.Control) != 0)
            {
                mods |= Input.ModifierKey.Control;
            }
            if ((Control.ModifierKeys & Keys.Alt) != 0)
            {
                mods |= Input.ModifierKey.Alt;
            }

            Input.LogicalButton lb = new Input.LogicalButton(e.ClickedItem.Text, mods);

            widget.SetBinding(lb.ToString());
        }