1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-23 22:39:44 +00:00

Clear MyGUI's clipboard, since we don't want to use it (Fixes #1277)

This would cause pasted text to appear twice, but only when using an SVN version of MyGUI, since 3.2 had a bug where it wouldn't recognize the Ctrl C/V/X keys when using separated key/textinput events.
This commit is contained in:
scrawl 2014-06-16 01:03:43 +02:00
parent 4f73e8bb71
commit edccb62c1f

View file

@ -547,6 +547,10 @@ namespace MWInput
} }
if (!mControlsDisabled) if (!mControlsDisabled)
mInputBinder->keyPressed (arg); mInputBinder->keyPressed (arg);
// Clear MyGUI's clipboard, so it doesn't interfere with our own clipboard implementation.
// We do not use MyGUI's clipboard manager because it doesn't support system clipboard integration with SDL.
MyGUI::ClipboardManager::getInstance().clearClipboardData("Text");
} }
void InputManager::textInput(const SDL_TextInputEvent &arg) void InputManager::textInput(const SDL_TextInputEvent &arg)