Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Ctrl当用户单击+ A(全选)时,如何实现修改后的行为。我尝试修改keyDown:事件,但似乎没有捕捉到事件。
keyDown:
⌘</kbd>+A is generally mapped to selectAll: on the first responder. You should be able to simply implement the selectAll: method on any responder in the chain and it'll "just work".
selectAll: