mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-14 02:33:51 +02:00
added missing check for ctrl
This commit is contained in:
parent
59f3740aea
commit
746f8c5e62
@ -33,7 +33,7 @@ void InputSourceKeyboard::handleEventKeyDown(const SDL_KeyboardEvent & key)
|
|||||||
{
|
{
|
||||||
if (SDL_IsTextInputActive() == SDL_TRUE)
|
if (SDL_IsTextInputActive() == SDL_TRUE)
|
||||||
{
|
{
|
||||||
if(key.keysym.sym == SDLK_v) {
|
if(key.keysym.sym == SDLK_v && isKeyboardCtrlDown()) {
|
||||||
std::string clipboardContent = SDL_GetClipboardText();
|
std::string clipboardContent = SDL_GetClipboardText();
|
||||||
boost::erase_all(clipboardContent, "\r");
|
boost::erase_all(clipboardContent, "\r");
|
||||||
boost::erase_all(clipboardContent, "\n");
|
boost::erase_all(clipboardContent, "\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user