From c3ba2ea44439ac42fdd6c841265c760918df3618 Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 6 Nov 2011 21:20:59 +0000 Subject: [PATCH] add control+w shortcut (closes item or list) --- static/js/pandora/menu.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/static/js/pandora/menu.js b/static/js/pandora/menu.js index eb326a004..5e1b7e154 100644 --- a/static/js/pandora/menu.js +++ b/static/js/pandora/menu.js @@ -310,6 +310,15 @@ pandora.ui.mainMenu = function() { pandora.URL.push('/help'); } }, + key_control_w: function() { + if (pandora.hasNoDialogOrScreen()) { + if (ui.item) { + pandora.UI.set({item: ''}); + } else if (ui._list) { + pandora.UI.set({find: {conditions: [], operator: '&'}}); + } + } + }, key_shift_a: function() { ui.item && ['video', 'timeline'].indexOf(ui.itemView) > -1 && pandora.UI.set({showAnnotations: !ui.showAnnotations});