From d3ddbc8b40d2525c297c56b450cab4c3a2ba7f1b Mon Sep 17 00:00:00 2001 From: OmrSi Date: Mon, 30 Nov 2020 02:45:34 +0200 Subject: [PATCH] Return Control - Backspace for normal textbox --- src/ui/Controls/SETextBox.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ui/Controls/SETextBox.cs b/src/ui/Controls/SETextBox.cs index 93bf1e329..0fc99f2f4 100644 --- a/src/ui/Controls/SETextBox.cs +++ b/src/ui/Controls/SETextBox.cs @@ -156,6 +156,14 @@ namespace Nikse.SubtitleEdit.Controls else { _textBox = new TextBox { BorderStyle = BorderStyle.None, Multiline = true }; + _textBox.KeyDown += (sender, args) => + { + if (args.KeyData == (Keys.Control | Keys.Back)) + { + UiUtil.ApplyControlBackspace(_textBox); + args.SuppressKeyPress = true; + } + }; InitializeBackingControl(_textBox); }