Ticket #13151: 0001-Always-let-ESCAPE-key-close-file-panel.patch

File 0001-Always-let-ESCAPE-key-close-file-panel.patch, 995 bytes (added by owenca, 7 years ago)
  • src/kits/tracker/FilePanelPriv.cpp

    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)  
    134134            view->CommitActivePose(false);
    135135        else if (view->IsFiltering())
    136136            filter->Looper()->PostMessage(B_CANCEL, *handler);
    137         else
    138             filter->Looper()->PostMessage(kCancelButton);
     137
     138        filter->Looper()->PostMessage(kCancelButton);
    139139
    140140        return B_SKIP_MESSAGE;
    141141    }