From 800657e2cb98c197c36a74e3f19a0c3dbfa0d4f0 Mon Sep 17 00:00:00 2001
From: Owen <owenca@users.noreply.github.com>
Date: Thu, 3 Aug 2017 22:51:29 +0000
Subject: [PATCH] Make Alt-Up and Alt-W keys work for file panels.
Fixes #11979
---
src/kits/tracker/FilePanelPriv.cpp | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/kits/tracker/FilePanelPriv.cpp b/src/kits/tracker/FilePanelPriv.cpp
index 59cc80d..110e7d5 100644
a
|
b
|
key_down_filter(BMessage* message, BHandler** handler, BMessageFilter* filter)
|
129 | 129 | |
130 | 130 | int32 modifier = 0; |
131 | 131 | message->FindInt32("modifiers", &modifier); |
| 132 | |
| 133 | if (modifier & B_COMMAND_KEY && key == B_UP_ARROW) { |
| 134 | filter->Looper()->PostMessage(kOpenParentDir); |
| 135 | return B_SKIP_MESSAGE; |
| 136 | } |
| 137 | |
| 138 | if (modifier & B_COMMAND_KEY && key == 'w') { |
| 139 | filter->Looper()->PostMessage(kCancelButton); |
| 140 | return B_SKIP_MESSAGE; |
| 141 | } |
| 142 | |
132 | 143 | if (!modifier && key == B_ESCAPE) { |
133 | 144 | if (view->ActivePose()) |
134 | 145 | view->CommitActivePose(false); |