mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-19 16:39:41 +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:
parent
4f73e8bb71
commit
edccb62c1f
1 changed files with 4 additions and 0 deletions
|
@ -547,6 +547,10 @@ namespace MWInput
|
|||
}
|
||||
if (!mControlsDisabled)
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue