diff --git a/src/Controls/SETextBox.cs b/src/Controls/SETextBox.cs index 20a292f49..918bc6a0a 100644 --- a/src/Controls/SETextBox.cs +++ b/src/Controls/SETextBox.cs @@ -226,12 +226,11 @@ namespace Nikse.SubtitleEdit.Controls } } + private const int WM_DBLCLICK = 0xA3; + private const int WM_LBUTTONDBLCLK = 0x203; + private const int WM_LBUTTONDOWN = 0x0201; protected override void WndProc(ref Message m) { - const int WM_DBLCLICK = 0xA3; - const int WM_LBUTTONDBLCLK = 0x203; - const int WM_LBUTTONDOWN = 0x0201; - if (m.Msg == WM_DBLCLICK || m.Msg == WM_LBUTTONDBLCLK) { SelectCurrentWord();