windowManager: Take over <super>m keybinding to toggle calendar

It's where all the fun is happening nowadays ...

https://bugzilla.gnome.org/show_bug.cgi?id=744850
This commit is contained in:
Florian Müllner
2015-02-18 02:52:07 +01:00
parent 06586eb95d
commit 08d2e617e1
4 changed files with 22 additions and 11 deletions

View File

@ -877,9 +877,8 @@ const Panel = new Lang.Class({
return Clutter.EVENT_STOP;
},
toggleAppMenu: function() {
let indicator = this.statusArea.appMenu;
if (!indicator) // appMenu not supported by current session mode
_toggleMenu: function(indicator) {
if (!indicator) // menu not supported by current session mode
return;
let menu = indicator.menu;
@ -891,6 +890,14 @@ const Panel = new Lang.Class({
menu.actor.navigate_focus(null, Gtk.DirectionType.TAB_FORWARD, false);
},
toggleAppMenu: function() {
this._toggleMenu(this.statusArea.appMenu);
},
toggleCalendar: function() {
this._toggleMenu(this.statusArea.dateMenu);
},
closeCalendar: function() {
let indicator = this.statusArea.dateMenu;
if (!indicator) // calendar not supported by current session mode