diff options
author | Cameron Cawley | 2019-09-19 22:20:08 +0100 |
---|---|---|
committer | Filippos Karapetis | 2019-09-21 22:16:01 +0300 |
commit | 014bef9eab9fb409cfb3ec66830e033e4aaa29a9 (patch) | |
tree | 1d4dedd703446cbf1cb90a279fc186cc293f1486 /gui/console.cpp | |
parent | bdd7b6baedea7455fdc1754f7c7b49fef201cc2a (diff) | |
download | scummvm-rg350-014bef9eab9fb409cfb3ec66830e033e4aaa29a9.tar.gz scummvm-rg350-014bef9eab9fb409cfb3ec66830e033e4aaa29a9.tar.bz2 scummvm-rg350-014bef9eab9fb409cfb3ec66830e033e4aaa29a9.zip |
BACKENDS: Add a default clipboard implementation
Diffstat (limited to 'gui/console.cpp')
-rw-r--r-- | gui/console.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/console.cpp b/gui/console.cpp index 79df413534..a47f5b9afd 100644 --- a/gui/console.cpp +++ b/gui/console.cpp @@ -523,7 +523,7 @@ void ConsoleDialog::specialKeys(Common::KeyCode keycode) { g_gui.scheduleTopDialogRedraw(); break; case Common::KEYCODE_v: - if (g_system->hasFeature(OSystem::kFeatureClipboardSupport) && g_system->hasTextInClipboard()) { + if (g_system->hasTextInClipboard()) { Common::String text = g_system->getTextFromClipboard(); insertIntoPrompt(text.c_str()); scrollToCurrent(); @@ -531,7 +531,7 @@ void ConsoleDialog::specialKeys(Common::KeyCode keycode) { } break; case Common::KEYCODE_c: - if (g_system->hasFeature(OSystem::kFeatureClipboardSupport)) { + { Common::String userInput = getUserInput(); if (!userInput.empty()) g_system->setTextInClipboard(userInput); |