From 2cb9af89a496ba99dc1f5404b43a782e8ac76672 Mon Sep 17 00:00:00 2001 From: Matthew Wilber Date: Sat, 15 Nov 2003 16:14:19 +0000 Subject: [PATCH] Changed page browsing keyboard shortcuts to make it possible to browse through files and pages without moving any hands. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5383 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/showimage/ShowImageWindow.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/apps/showimage/ShowImageWindow.cpp b/src/apps/showimage/ShowImageWindow.cpp index 959e5f68e2..65462d0a27 100644 --- a/src/apps/showimage/ShowImageWindow.cpp +++ b/src/apps/showimage/ShowImageWindow.cpp @@ -267,10 +267,10 @@ ShowImageWindow::LoadMenus(BMenuBar *pbar) pbar->AddItem(pmenu); pmenu = fpBrowseMenu = new BMenu("Browse"); - AddItemMenu(pmenu, "First Page", MSG_PAGE_FIRST, 'F', 0, 'W', true); - AddItemMenu(pmenu, "Last Page", MSG_PAGE_LAST, 'L', 0, 'W', true); - AddItemMenu(pmenu, "Next Page", MSG_PAGE_NEXT, 'N', 0, 'W', true); - AddItemMenu(pmenu, "Previous Page", MSG_PAGE_PREV, 'P', 0, 'W', true); + AddItemMenu(pmenu, "First Page", MSG_PAGE_FIRST, B_LEFT_ARROW, B_SHIFT_KEY, 'W', true); + AddItemMenu(pmenu, "Last Page", MSG_PAGE_LAST, B_RIGHT_ARROW, B_SHIFT_KEY, 'W', true); + AddItemMenu(pmenu, "Next Page", MSG_PAGE_NEXT, B_RIGHT_ARROW, 0, 'W', true); + AddItemMenu(pmenu, "Previous Page", MSG_PAGE_PREV, B_LEFT_ARROW, 0, 'W', true); fpGoToPageMenu = new BMenu("Go To Page"); pmenu->AddItem(fpGoToPageMenu); pmenu->AddSeparatorItem(); @@ -281,8 +281,8 @@ ShowImageWindow::LoadMenus(BMenuBar *pbar) pmenu = new BMenu("Image"); AddItemMenu(pmenu, "Dither Image", MSG_DITHER_IMAGE, 0, 0, 'W', true); pmenu->AddSeparatorItem(); - AddItemMenu(pmenu, "Rotate Clockwise", MSG_ROTATE_CLOCKWISE, B_RIGHT_ARROW, 0, 'W', true); - AddItemMenu(pmenu, "Rotate Anticlockwise", MSG_ROTATE_ACLKWISE, B_LEFT_ARROW, 0, 'W', true); + AddItemMenu(pmenu, "Rotate Clockwise", MSG_ROTATE_CLOCKWISE, ']', 0, 'W', true); + AddItemMenu(pmenu, "Rotate Anticlockwise", MSG_ROTATE_ACLKWISE, '[', 0, 'W', true); pmenu->AddSeparatorItem(); AddItemMenu(pmenu, "Mirror Vertical", MSG_MIRROR_VERTICAL, 0, 0, 'W', true); AddItemMenu(pmenu, "Mirror Horizontal", MSG_MIRROR_HORIZONTAL, 0, 0, 'W', true); @@ -302,7 +302,7 @@ ShowImageWindow::AddItemMenu(BMenu *pmenu, char *caption, long unsigned int msg, char shortcut, uint32 modifier, char target, bool benabled) { BMenuItem* pitem; - pitem = new BMenuItem(caption, new BMessage(msg), shortcut); + pitem = new BMenuItem(caption, new BMessage(msg), shortcut, modifier); if (target == 'A') pitem->SetTarget(be_app);