type TShiftState = set of (ssShift, ssAlt, ssCtrl, ssLeft, ssRight, ssMiddle, ssDouble);<br><br>Value Meaning<br><br>ssShift The Shift key is held down.<br>ssAlt The Alt key is held down.<br>ssCtrl The Ctrl key is held down.<br>ssLeft The left mouse button is held down.<br>ssRight The right mouse button is held down.<br>ssMiddle The middle mouse button is held down.<br>ssDouble The mouse was double-clicked.<br><br>判断右键用以下代码:<br><br>if ssRight in shift then .......