GUI: Add copy to clipboard shortcut for EditableWidget
This commit is contained in:
parent
e79fc3ac76
commit
6ab6d76792
1 changed files with 9 additions and 0 deletions
|
@ -200,6 +200,15 @@ bool EditableWidget::handleKeyDown(Common::KeyState state) {
|
|||
}
|
||||
break;
|
||||
|
||||
case Common::KEYCODE_c:
|
||||
if (g_system->hasFeature(OSystem::kFeatureClipboardSupport) && state.flags & Common::KBD_CTRL) {
|
||||
if (!getEditString().empty())
|
||||
g_system->setTextInClipboard(getEditString());
|
||||
} else {
|
||||
defaultKeyDownHandler(state, dirty, forcecaret, handled);
|
||||
}
|
||||
break;
|
||||
|
||||
#ifdef MACOSX
|
||||
// Let ctrl-a / ctrl-e move the caret to the start / end of the line.
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue