Disable Full Keyboard Access for App

╄→尐↘猪︶ㄣ 提交于 2019-12-25 03:14:16

问题


Can "Full Keyboard Access" (System Prefs -> Keyboard -> (Radio) All Controls) be controlled with some API? It causes major issues when this thing is on in my app (like buttons not working as expected etc ... it has some custom UI)

Regards, Erik


回答1:


Override nextValidKeyView and previousValidKeyView in your custom view to return something sane, or set the view's nextKeyView and previousKeyView to specific views if detecting valid key views automatically isn't possible.

If Full Keyboard Access can't navigate your app correctly, then neither can anybody who can't use the mouse. Also, some of us really like Full Keyboard Access, and hate any app that either doesn't work properly under it or breaks it deliberately (and, from the user perspective, there is no difference).



来源:https://stackoverflow.com/questions/3964261/disable-full-keyboard-access-for-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!