I've got a webview in my window (well, several) and want to use the delete key for a custom action. Is there a way to disable the delete key shortcut in the webview so i can use it for someth开发者_如何学JAVAing else?
I managed to do it via the webkit javascript bridge. Just check for the key in a javascript event and then call an obj-c method from there.
The WebEditingDelegate
will let you know if a command is about to performed, and so you could override that perhaps.
精彩评论