From 4967277bf80a3499ce689f1f373298d87d88a7dc Mon Sep 17 00:00:00 2001 From: Xanfre Date: Thu, 9 May 2019 20:24:16 -0500 Subject: [PATCH] Keep RichTextBox selectable after entering reader mode --- AngelLoader/CustomControls/RichTextBoxCustom.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AngelLoader/CustomControls/RichTextBoxCustom.cs b/AngelLoader/CustomControls/RichTextBoxCustom.cs index 4e089ba44..6739497de 100644 --- a/AngelLoader/CustomControls/RichTextBoxCustom.cs +++ b/AngelLoader/CustomControls/RichTextBoxCustom.cs @@ -445,14 +445,17 @@ protected override void WndProc(ref Message m) case InteropMisc.WM_MBUTTONDOWN: this.SetStyle(ControlStyles.Selectable, false); DefWndProc(ref m); + this.SetStyle(ControlStyles.Selectable, true); break; case InteropMisc.WM_MBUTTONUP: this.SetStyle(ControlStyles.Selectable, false); DefWndProc(ref m); + this.SetStyle(ControlStyles.Selectable, true); break; case InteropMisc.WM_MBUTTONDBLCLK: this.SetStyle(ControlStyles.Selectable, false); DefWndProc(ref m); + this.SetStyle(ControlStyles.Selectable, true); break; // The below DefWndProc() call essentially "calls" this section, and this section "returns" whether // the cursor was over a link (via LinkCursor)