Objective-C Cocoa 中的关键窗口是什么?
什么是钥匙窗?它有什么用?我读到它用于“按键输入”;但是有人可以对此进行扩展吗?举个例子将不胜感激。
What is a key window? And what is it used for? I read its used for "key input";but could someone expand on this? An example would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“关键窗口”是当前正在接受鼠标和键盘事件的窗口。通常主窗口和关键窗口是相同的,但这不一定是这样(例如,如果打开了一个实用程序窗口,它不可能是主窗口,但它可能会成为关键窗口)。
The "key window" is the window that is currently accepting mouse and keyboard events. Usually the main window and the key window are the same, but that's not necessarily true (for example, if you have a utility window open, it can't be the main window, but it may become the key window).