Merge pull request #4492 from OmrSi/allow-alt

Allow for "Alt" shortcuts when a textbox is focused
This commit is contained in:
Nikolaj Olsson 2020-11-10 18:27:24 +01:00 committed by GitHub
commit 6328cd77b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13791,7 +13791,7 @@ namespace Nikse.SubtitleEdit.Forms
}
var fc = FindFocusedControl(this);
if (fc != null && e.Modifiers != Keys.Control && 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.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))
{
// do not check for shortcuts if text is being entered and a textbox is focused
if ((fc.Name == textBoxListViewText.Name || fc.Name == textBoxListViewTextAlternate.Name || fc.Name == textBoxSearchWord.Name) &&