main menu: listen to clipboard events

This commit is contained in:
rolux 2013-07-15 09:05:17 +00:00
parent 8c5f173b21
commit 0f441fc0fa
1 changed files with 6 additions and 0 deletions

View File

@ -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'));
});