From 0f441fc0faad1995600a01f716c385c43241a490 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 15 Jul 2013 09:05:17 +0000 Subject: [PATCH] main menu: listen to clipboard events --- static/js/pandora/mainMenu.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/static/js/pandora/mainMenu.js b/static/js/pandora/mainMenu.js index 3f8b2816a..37a68642f 100644 --- a/static/js/pandora/mainMenu.js +++ b/static/js/pandora/mainMenu.js @@ -670,6 +670,12 @@ pandora.ui.mainMenu = function() { } }); + Ox.Clipboard.bindEvent(function(data, event) { + if (Ox.contains(['add', 'copy'], event)) { + that.highlightMenu('editMenu'); + } + }); + Ox.Fullscreen.bind('change', function(state) { that.setItemTitle('togglefullscreen', Ox._((state ? 'Exit' : 'Enter') + ' Fullscreen')); });