From c3c4678635aa03d301ac1f9da13323fc0662ecfd Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 13 Feb 2009 12:11:10 -0500 Subject: [PATCH] Bug 571651 - Bind Alt-F1 to overlay Previously it was bound to main menu, bind it to the overlay now. --- js/ui/main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/ui/main.js b/js/ui/main.js index e61f3cffe..438edcbfd 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -64,14 +64,16 @@ function start() { wm = new WindowManager.WindowManager(); let display = global.screen.get_display(); - display.connect('overlay-key', function(display) { + let toggleOverlay = function(display) { if (overlay.visible) { hide_overlay(); } else { show_overlay(); } }); - + display.connect('overlay-key', toggleOverlay); + global.connect('panel-main-menu', toggleOverlay); + Mainloop.idle_add(_removeUnusedWorkspaces); }