From df2fd7fd0d35dea6735d6b8f01dbb5ded6219073 Mon Sep 17 00:00:00 2001
From: Albert Graef <aggraef@gmail.com>
Date: Sun, 6 Sep 2020 14:50:37 +0200
Subject: [PATCH] Fix the findbox regression, part 1.

This makes Ctrl+F work again, by making sure that edit mode is set
correctly in the GUI even if glob_ctrl is set (because the Ctrl key up
event goes to the find box and is thus is never received by the canvas).
---
 pd/src/g_editor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pd/src/g_editor.c b/pd/src/g_editor.c
index b41086d47..06a773db6 100644
--- a/pd/src/g_editor.c
+++ b/pd/src/g_editor.c
@@ -8042,7 +8042,7 @@ void canvas_editmode(t_canvas *x, t_floatarg fyesplease)
     }
     if (glist_isvisible(x))
     {
-        int edit = !glob_ctrl && x->gl_edit;
+        int edit = /*!glob_ctrl && */x->gl_edit;
         gui_vmess("gui_canvas_set_editmode", "xi",
             glist_getcanvas(x),
             edit);
-- 
GitLab