Browse Source

added missing check for ctrl

Michael 2 years ago
parent
commit
746f8c5e62
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/eventsSDL/InputSourceKeyboard.cpp

+ 1 - 1
client/eventsSDL/InputSourceKeyboard.cpp

@@ -33,7 +33,7 @@ void InputSourceKeyboard::handleEventKeyDown(const SDL_KeyboardEvent & key)
 {
 	if (SDL_IsTextInputActive() == SDL_TRUE)
 	{
-		if(key.keysym.sym == SDLK_v) {
+		if(key.keysym.sym == SDLK_v && isKeyboardCtrlDown()) {
 		        std::string clipboardContent = SDL_GetClipboardText();
 		        boost::erase_all(clipboardContent, "\r");
 		        boost::erase_all(clipboardContent, "\n");