From 6429cec4cbebc7d9ca69437bb941bce01c4208aa Mon Sep 17 00:00:00 2001 From: Nikolaj Olsson Date: Mon, 26 Feb 2024 16:09:59 +0100 Subject: [PATCH] Fix copy/paste in duration field - thx GCRaistlin :) Fix #7982 --- src/ui/Controls/NikseUpDown.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/ui/Controls/NikseUpDown.cs b/src/ui/Controls/NikseUpDown.cs index ac81f7592..91626c995 100644 --- a/src/ui/Controls/NikseUpDown.cs +++ b/src/ui/Controls/NikseUpDown.cs @@ -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);