mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-05 00:36:57 +00:00
GUI: Add copy to clipboard shortcut for EditableWidget
This commit is contained in:
parent
e79fc3ac76
commit
6ab6d76792
@ -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…
Reference in New Issue
Block a user