Merge pull request #4421 from OmrSi/alt-alternative

Don't lose focus when pressing alt alone in original textbox
This commit is contained in:
Nikolaj Olsson 2020-10-10 07:33:10 +02:00 committed by GitHub
commit 5ab89503d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13612,7 +13612,7 @@ namespace Nikse.SubtitleEdit.Forms
return;
}
if (e.Modifiers == Keys.Alt && e.KeyCode == (Keys.RButton | Keys.ShiftKey) && textBoxListViewText.Focused)
if (e.Modifiers == Keys.Alt && e.KeyCode == (Keys.RButton | Keys.ShiftKey) && (textBoxListViewText.Focused || textBoxListViewTextAlternate.Focused))
{ // annoying that focus leaves textbox while typing, when pressing Alt alone
e.SuppressKeyPress = true;
return;