private int mouseshift2int(MouseEventArgs arg) { int shift = (arg.Shift ? 1 : 0) + (arg.Control ? 2 : 0) + (arg.Alt ? 4 : 0); return shift; }