From 6d25cd8da27cb54132e546cb75754256786a2bdb Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 1 Aug 2013 10:34:07 +0000 Subject: [PATCH] fix #1182 (add keyboard shortcut to move focus to main menu) --- static/js/mainMenu.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static/js/mainMenu.js b/static/js/mainMenu.js index 7ee4af88..82d7fe68 100644 --- a/static/js/mainMenu.js +++ b/static/js/mainMenu.js @@ -472,6 +472,11 @@ pandora.ui.mainMenu = function() { } } }, + key_control_m: function() { + if (!pandora.hasDialogOrScreen() && !that.isSelected()) { + that.options('menus')[0].element.trigger('click'); + } + }, key_control_p: function() { window.open(document.location.href + '#?print=true', '_blank'); },