From 4391f4b15cb59268e7c1c41af26286bc2698034f Mon Sep 17 00:00:00 2001 From: Fellippe Heitor Date: Sun, 2 Aug 2020 02:57:46 -0300 Subject: [PATCH] Simplifies checking for SelectionRectangle Avoids having the editor lose focus inadvertently. --- InForm/UiEditorPreview.bas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InForm/UiEditorPreview.bas b/InForm/UiEditorPreview.bas index 797cef3..129ca70 100644 --- a/InForm/UiEditorPreview.bas +++ b/InForm/UiEditorPreview.bas @@ -191,8 +191,8 @@ SUB __UI_BeforeUpdateDisplay SendData b$, "MENUPANELACTIVE" END IF - IF prevSelectionRectangle <> (__UI_SelectionRectangle OR __UI_CtrlIsDown OR __UI_ShiftIsDown) THEN - prevSelectionRectangle = (__UI_SelectionRectangle OR __UI_CtrlIsDown OR __UI_ShiftIsDown) + IF prevSelectionRectangle <> (__UI_SelectionRectangle) THEN + prevSelectionRectangle = (__UI_SelectionRectangle) b$ = MKI$(prevSelectionRectangle) SendData b$, "SELECTIONRECTANGLE" END IF