Allow space for video play/pause toggle shortcut - thx Mike :)

This commit is contained in:
Nikolaj Olsson 2020-05-31 14:47:09 +02:00
parent 8840db84c9
commit 17080e716c

View File

@ -13950,6 +13950,12 @@ namespace Nikse.SubtitleEdit.Forms
{ {
if (mediaPlayer.VideoPlayer != null) if (mediaPlayer.VideoPlayer != null)
{ {
if (_shortcuts.VideoPlayPauseToggle == Keys.Space &&
(textBoxListViewText.Focused || textBoxListViewTextAlternate.Focused || textBoxSearchWord.Focused))
{
return;
}
_endSeconds = -1; _endSeconds = -1;
e.SuppressKeyPress = true; e.SuppressKeyPress = true;
e.Handled = true; e.Handled = true;