mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 17:57:14 +00:00
WAGE: Implement Paste action
This commit is contained in:
parent
e56d934836
commit
3570e417c9
@ -831,4 +831,9 @@ void Gui::actionCopy() {
|
||||
_menu->enableCommand(kMenuEdit, kMenuActionPaste, true);
|
||||
}
|
||||
|
||||
void Gui::actionPaste() {
|
||||
_engine->_inputText = _clipboard;
|
||||
drawInput();
|
||||
}
|
||||
|
||||
} // End of namespace Wage
|
||||
|
@ -105,6 +105,7 @@ public:
|
||||
void popCursor();
|
||||
|
||||
void actionCopy();
|
||||
void actionPaste();
|
||||
|
||||
private:
|
||||
void paintBorder(Graphics::Surface *g, Common::Rect &r, WindowType windowType);
|
||||
|
@ -523,6 +523,8 @@ void Menu::executeCommand(MenuSubItem *subitem) {
|
||||
_gui->actionCopy();
|
||||
break;
|
||||
case kMenuActionPaste:
|
||||
_gui->actionPaste();
|
||||
break;
|
||||
case kMenuActionClear:
|
||||
warning("STUB: Unhandled shortcut");
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user