I can recognize when the user presses any Shift key with this code:
-(void)flagsChanged:(NSEvent *)theEvent
{
if ([theEvent modifierFlags] & NSShiftKeyMask)
//. . .
}
but is there any way to distinguish whether it was the right or left Shift key that was pressed?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…