From 13406893d1b51d35840308f8e9672f7e512fdcb4 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Sat, 31 Jan 2026 23:44:49 +0100 Subject: [PATCH] text / textprop editing: allow to click in canvas area to confirm and close, like in other text widgets --- src/callback.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/callback.c b/src/callback.c index 2f5c6367..e6e38fea 100644 --- a/src/callback.c +++ b/src/callback.c @@ -4154,7 +4154,10 @@ static void handle_button_press(int event, int state, int rstate, KeySym key, in /* button1 click to select another instance while edit prop dialog open */ else if(button==Button1 && xctx->semaphore >= 2) { - if(tcleval("winfo exists .dialog.textinput")[0] == '1') { /* proc text_line */ + if(tcleval("winfo exists .dialog.f2.txt")[0] == '1') { /* proc enter_text */ + tcleval(".dialog.buttons.ok invoke"); + return; + } else if(tcleval("winfo exists .dialog.textinput")[0] == '1') { /* proc text_line */ tcleval(".dialog.f1.b1 invoke"); return; } else if(tcleval("winfo exists .dialog.txt")[0] == '1') { /* proc enter_text */