Fix copy/paste in duration field - thx GCRaistlin :)

Fix #7982
This commit is contained in:
Nikolaj Olsson 2024-02-26 16:09:59 +01:00
parent 2093f2e3f0
commit 6429cec4cb

View File

@ -267,6 +267,21 @@ namespace Nikse.SubtitleEdit.Controls
KeyDown?.Invoke(sender, e);
Invalidate();
}
else if (e.Modifiers == Keys.Control && e.KeyCode == Keys.A)
{
_textBox.SelectAll();
e.SuppressKeyPress = true;
}
if (e.Modifiers == Keys.Control && e.KeyCode == Keys.C)
{
_textBox.Copy();
e.SuppressKeyPress = true;
}
if (e.Modifiers == Keys.Control && e.KeyCode == Keys.V)
{
_textBox.Paste();
e.SuppressKeyPress = true;
}
else
{
KeyDown?.Invoke(sender, e);