add keyboard shortcut for reload application

This commit is contained in:
rolux 2013-08-03 18:31:58 +00:00
parent acd70661d9
commit 2377269391
2 changed files with 4 additions and 0 deletions

View file

@ -5,6 +5,7 @@ pandora.ui.loadingIcon = function() {
var self = {},
that = Ox.LoadingIcon({
tooltip: Ox._('Reload {0}', [pandora.site.site.name])
+ ' <span class="OxBright">' + Ox.SYMBOLS.CONTROL + 'R' + '</span>'
}, self)
.attr({
src: Ox.UI.getImageURL('symbolRedo')

View file

@ -517,6 +517,9 @@ pandora.ui.mainMenu = function() {
key_control_p: function() {
window.open(document.location.href + '#?print=true', '_blank');
},
key_control_r: function() {
pandora.$ui.appPanel.reload();
},
key_control_shift_f: function() {
if (!pandora.hasDialogOrScreen()) {
pandora.$ui.filterDialog = pandora.ui.filterDialog().open();