From 9d8d64b321f6d8964066dd6ed83064a32969ec04 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Mon, 21 Jul 2014 17:35:51 +0200 Subject: [PATCH] TextEdit: Ctrl-C to copy the contents of the textbox. --- ui/view.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/view.cpp b/ui/view.cpp index 69f7f0f3a5..db3bfc9c5a 100644 --- a/ui/view.cpp +++ b/ui/view.cpp @@ -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);