Bug 571651 - Bind Alt-F1 to overlay
Previously it was bound to main menu, bind it to the overlay now.
This commit is contained in:
parent
ac286a7722
commit
c3c4678635
@ -64,13 +64,15 @@ function start() {
|
|||||||
wm = new WindowManager.WindowManager();
|
wm = new WindowManager.WindowManager();
|
||||||
|
|
||||||
let display = global.screen.get_display();
|
let display = global.screen.get_display();
|
||||||
display.connect('overlay-key', function(display) {
|
let toggleOverlay = function(display) {
|
||||||
if (overlay.visible) {
|
if (overlay.visible) {
|
||||||
hide_overlay();
|
hide_overlay();
|
||||||
} else {
|
} else {
|
||||||
show_overlay();
|
show_overlay();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
display.connect('overlay-key', toggleOverlay);
|
||||||
|
global.connect('panel-main-menu', toggleOverlay);
|
||||||
|
|
||||||
Mainloop.idle_add(_removeUnusedWorkspaces);
|
Mainloop.idle_add(_removeUnusedWorkspaces);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user