Browse Source

Fix clipboard being pasted when Ctrl + Alt + V key combination is used (#465)

Jan Lupčík 2 years ago
parent
commit
ab9a43c704
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Source/Core/Elements/WidgetTextInput.cpp

+ 2 - 1
Source/Core/Elements/WidgetTextInput.cpp

@@ -400,6 +400,7 @@ void WidgetTextInput::ProcessEvent(Event& event)
 		bool numlock = event.GetParameter<int>("num_lock_key", 0) > 0;
 		bool shift = event.GetParameter<int>("shift_key", 0) > 0;
 		bool ctrl = event.GetParameter<int>("ctrl_key", 0) > 0;
+		bool alt = event.GetParameter<int>("alt_key", 0) > 0;
 		bool selection_changed = false;
 
 		switch (key_identifier)
@@ -482,7 +483,7 @@ void WidgetTextInput::ProcessEvent(Event& event)
 
 		case Input::KI_V:
 		{
-			if (ctrl)
+			if (ctrl && !alt)
 			{
 				String clipboard_text;
 				GetSystemInterface()->GetClipboardText(clipboard_text);