From d56476656e1a992b5ea1e8ed1e16e8166dc87807 Mon Sep 17 00:00:00 2001 From: Humdinger Date: Mon, 20 Jan 2014 14:54:22 +0100 Subject: [PATCH] Added menu item "Move to Trash" Changed shortcut of "Show tool bar" to ALT+B. Assigned shortcut ALT+T zu "Move to Trash", having the same as e.g. Tracker and MediaPlayer playlist. DELETE still works as alternative shortcut (if there's an active selection, it will get unselected instead, as before). --- src/apps/showimage/ShowImageWindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/apps/showimage/ShowImageWindow.cpp b/src/apps/showimage/ShowImageWindow.cpp index fbd6a54663..ca7b5a30ff 100644 --- a/src/apps/showimage/ShowImageWindow.cpp +++ b/src/apps/showimage/ShowImageWindow.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2003-2011, Haiku, Inc. All Rights Reserved. + * Copyright 2003-2014, Haiku, Inc. All Rights Reserved. * Copyright 2004-2005 yellowTAB GmbH. All Rights Reserverd. * Copyright 2006 Bernd Korz. All Rights Reserved * Distributed under the terms of the MIT License. @@ -357,7 +357,7 @@ ShowImageWindow::_BuildViewMenu(BMenu* menu, bool popupMenu) if (!popupMenu) { _AddItemMenu(menu, B_TRANSLATE("Show tool bar"), kMsgToggleToolBar, - 'T', 0, this); + 'B', 0, this); _MarkMenuItem(menu, kMsgToggleToolBar, !fToolBarView->IsHidden(fToolBarView)); } @@ -408,6 +408,7 @@ ShowImageWindow::_AddMenus(BMenuBar* bar) // to from the Be bitmap image format menu->AddItem(menuSaveAs); _AddItemMenu(menu, B_TRANSLATE("Close"), B_QUIT_REQUESTED, 'W', 0, this); + _AddItemMenu(menu, B_TRANSLATE("Move to Trash"), kMsgDeleteCurrentFile, 'T', 0, this); menu->AddSeparatorItem(); _AddItemMenu(menu, B_TRANSLATE("Page setup" B_UTF8_ELLIPSIS), MSG_PAGE_SETUP, 0, 0, this);