开发者

Why don't I get keyUp / keyDown events for control characters in Cocoa?

My NSView window receives key up / key开发者_如何学JAVA down events for all keys except for Shift, Alt, Cmd and a few others... How can I fix that?


Modifier keys are a special case. If you want to know when they're pressed or released, implement the responder method -flagsChanged:

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜