From bfdd1f65d48fdc1d4619039037f4860eec2a9b3d Mon Sep 17 00:00:00 2001 From: OmrSi Date: Sun, 28 Mar 2021 01:44:38 +0300 Subject: [PATCH] Allow all modifiers combinations in textbox --- src/ui/Forms/Main.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/Forms/Main.cs b/src/ui/Forms/Main.cs index 17360d297..f90a1782f 100644 --- a/src/ui/Forms/Main.cs +++ b/src/ui/Forms/Main.cs @@ -14417,7 +14417,7 @@ namespace Nikse.SubtitleEdit.Forms } var fc = FindFocusedControl(this); - if (fc != null && e.Modifiers != Keys.Control && e.Modifiers != Keys.Alt && e.Modifiers != (Keys.Control | Keys.Shift) && e.Modifiers != (Keys.Control | Keys.Alt) && e.Modifiers != (Keys.Control | Keys.Shift | Keys.Alt)) + if (fc != null && (e.Modifiers == Keys.None || e.Modifiers == Keys.Shift)) { // do not check for shortcuts if text is being entered and a textbox is focused if ((fc.Parent.Name == textBoxListViewText.Name || fc.Parent.Name == textBoxListViewTextOriginal.Name || fc.Name == textBoxSearchWord.Name) &&