TextEdit: Ctrl-C to copy the contents of the textbox.

This commit is contained in:
Henrik Rydgard 2014-07-21 17:35:51 +02:00
parent 6f6f6eb1fb
commit 9d8d64b321

View File

@ -659,6 +659,10 @@ void TextEdit::Key(const KeyInput &input) {
if (ctrlDown_) {
switch (input.keyCode) {
case NKCODE_C:
// Just copy the entire text contents, until we get selection support.
System_SendMessage("setclipboardtext", text_.c_str());
break;
case NKCODE_V:
{
std::string clipText = System_GetProperty(SYSPROP_CLIPBOARD_TEXT);