From 970ebe506f10fac2a5ff0cbd890e11f3de97be3f Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 23 Apr 2012 08:38:43 +0000 Subject: [PATCH] add keyboard shortcuts to panel collapse/expand tooltips --- static/js/pandora/contentPanel.js | 7 +++++-- static/js/pandora/leftPanel.js | 3 ++- static/js/pandora/mainPanel.js | 3 ++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/static/js/pandora/contentPanel.js b/static/js/pandora/contentPanel.js index ff01974a0..032bd6237 100644 --- a/static/js/pandora/contentPanel.js +++ b/static/js/pandora/contentPanel.js @@ -10,7 +10,8 @@ pandora.ui.contentPanel = function() { resizable: true, resize: [96, 112, 128, 144, 160, 176, 192, 208, 224, 240, 256], size: pandora.user.ui.filtersSize, - tooltip: 'filters' + tooltip: 'filters ' + + Ox.SYMBOLS.SHIFT + 'F' }, { element: pandora.$ui.list = pandora.ui.list() @@ -25,7 +26,9 @@ pandora.ui.contentPanel = function() { collapsible: true, element: pandora.$ui.browser = pandora.ui.browser(), size: 112 + Ox.UI.SCROLLBAR_SIZE, - tooltip: pandora.site.itemName.singular.toLowerCase() + ' browser' + tooltip: pandora.site.itemName.singular.toLowerCase() + + ' browser ' + + Ox.SYMBOLS.SHIFT + 'B' }, { element: pandora.$ui.item = pandora.ui.item() diff --git a/static/js/pandora/leftPanel.js b/static/js/pandora/leftPanel.js index 850f0b5b3..8fec96a48 100644 --- a/static/js/pandora/leftPanel.js +++ b/static/js/pandora/leftPanel.js @@ -15,7 +15,8 @@ pandora.ui.leftPanel = function() { collapsible: true, element: pandora.$ui.info = pandora.ui.info(), size: pandora.getInfoHeight(true), - tooltip: 'info' + tooltip: 'info ' + + Ox.SYMBOLS.SHIFT + 'I' } ], id: 'leftPanel', diff --git a/static/js/pandora/mainPanel.js b/static/js/pandora/mainPanel.js index 64fd08279..3d2518129 100644 --- a/static/js/pandora/mainPanel.js +++ b/static/js/pandora/mainPanel.js @@ -10,7 +10,8 @@ pandora.ui.mainPanel = function() { resizable: true, resize: [192, 256, 320, 384], size: pandora.user.ui.sidebarSize, - tooltip: 'sidebar' + tooltip: 'sidebar ' + + Ox.SYMBOLS.SHIFT + 'S' }, { element: pandora.$ui.rightPanel = pandora.ui.rightPanel()