开发者

NSTextView copy & paste problem

开发者 https://www.devze.com 2023-02-22 13:34 出处:网络
In my application I have an NSTextView. If I want to select some text using the keyboard, I press Command+c, which is supposed to select the text, then Command+v which should paste the selected text.

In my application I have an NSTextView. If I want to select some text using the keyboard, I press Command+c, which is supposed to select the text, then Command+v which should paste the selected text. Using the keyboard, it's not working, but using the mouse copy/paste is working.

Moreover, when I type Command+c it invokes the print page -- looks like it's mapped wrongly, but how to co开发者_如何学JAVArrect it ?

Any pointers as to what I need to set to get it handled by the keyboard?


Look at the various menu items in MainMenu.xib and make sure that all of the equivalent keys are set correctly. Maybe they were changed by accident.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号