Ticket #11979: 0001-Let-ALT-Up-and-ALT-W-keys-through-for-file-panels.patch

File 0001-Let-ALT-Up-and-ALT-W-keys-through-for-file-panels.patch, 1.1 KB (added by owenca, 7 years ago)
  • src/kits/tracker/ContainerWindow.cpp

    From 17764ee0ecb13bce2218f96163d72dcfa04dbe2b Mon Sep 17 00:00:00 2001
    From: Owen <owenca@users.noreply.github.com>
    Date: Tue, 1 Aug 2017 02:38:29 +0000
    Subject: [PATCH] Let ALT+Up and ALT+W keys through for file panels.
    
    Fixes #11979
    ---
     src/kits/tracker/ContainerWindow.cpp | 5 +++--
     1 file changed, 3 insertions(+), 2 deletions(-)
    
    diff --git a/src/kits/tracker/ContainerWindow.cpp b/src/kits/tracker/ContainerWindow.cpp
    index a95d9d9..b356a8a 100644
    a b BContainerWindow::SetCloseItem(BMenu* menu)  
    18221822{
    18231823    BMenuItem* item;
    18241824    if ((item = menu->FindItem(B_QUIT_REQUESTED)) == NULL
    1825         && (item = menu->FindItem(kCloseAllWindows)) == NULL) {
     1825        && (item = menu->FindItem(kCloseAllWindows)) == NULL
     1826        && !fPoseView->IsFilePanel()) {
    18261827        return;
    18271828    }
    18281829
    BContainerWindow::ShowNavigator(bool show)  
    41464147void
    41474148BContainerWindow::SetSingleWindowBrowseShortcuts(bool enabled)
    41484149{
    4149     if (PoseView()->IsDesktopWindow())
     4150    if (PoseView()->IsDesktopWindow() || fPoseView->IsFilePanel())
    41504151        return;
    41514152
    41524153    if (enabled) {