Cocoa webview textbox not accepting keyboard shortcuts
I have a webview under a cocoa window for a native Mac OS X application. However, everything works well, but the keyboard shortcuts don't work, if I select any text inside the webview, I cannot copy / paste it with keyboard shortcuts: CMD + C (copy) and CMD + V (paste)
I am trying to implement the following code in AppDelegate.m: - (BOOL) executeKeyEquivalent: (NSEvent *) key {return YES;
}
but it didn't work, wondering if I'm missing some code there.
Any idea how to implement the PerformKeyEquivalent method to allow keyboard shortcuts by default?
Thanks in advance.
+3
source to share
No one has answered this question yet
Check out similar questions: