From b3a744553e08f11fd5b062224be90191a4fb299f Mon Sep 17 00:00:00 2001
From: Owen <owenca@users.noreply.github.com>
Date: Mon, 31 Jul 2017 22:12:39 +0000
Subject: [PATCH] Always let ESCAPE key close file panel...
...even if the ESCAPE key is pressed to cancel the commit of an active
pose or to stop filering.
Fixes #13151
---
src/kits/tracker/FilePanelPriv.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/kits/tracker/FilePanelPriv.cpp b/src/kits/tracker/FilePanelPriv.cpp
index 59cc80d..43569a5 100644
a
|
b
|
key_down_filter(BMessage* message, BHandler** handler, BMessageFilter* filter)
|
134 | 134 | view->CommitActivePose(false); |
135 | 135 | else if (view->IsFiltering()) |
136 | 136 | filter->Looper()->PostMessage(B_CANCEL, *handler); |
137 | | else |
138 | | filter->Looper()->PostMessage(kCancelButton); |
| 137 | |
| 138 | filter->Looper()->PostMessage(kCancelButton); |
139 | 139 | |
140 | 140 | return B_SKIP_MESSAGE; |
141 | 141 | } |