mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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
1 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue