From aee3cf15347e0e10ed3e708d7987a2919a8f8118 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 18 Apr 2022 12:22:30 -0600 Subject: [PATCH] handle an action named "Escape" specially when blocking activation during drags --- libs/gtkmm2ext/bindings.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/gtkmm2ext/bindings.cc b/libs/gtkmm2ext/bindings.cc index 214cb22909..551c40f3fa 100644 --- a/libs/gtkmm2ext/bindings.cc +++ b/libs/gtkmm2ext/bindings.cc @@ -496,7 +496,12 @@ Bindings::activate (KeyboardKey kb, Operation op) /* bindings cannot be used during drags */ if (_drag_active) { - return true; + /* sadly we need to special case one possible action, because + Escape is used to break drags. + */ + if (!action || action->get_name() != _("Escape")) { + return true; + } } if (action) {