MessageTray: pass keyboard events to tray icons

Synthetize XKeyEvents for clicks emulated by StButton using Return or
Space.

https://bugzilla.gnome.org/show_bug.cgi?id=687425
This commit is contained in:
Giovanni Campagna
2012-11-02 16:09:04 +01:00
parent 42c1285ead
commit 59ecd610b1
4 changed files with 45 additions and 26 deletions

View File

@ -637,11 +637,7 @@ const KeyboardSource = new Lang.Class({
this.keepTrayOnSummaryClick = true;
},
handleSummaryClick: function() {
let event = Clutter.get_current_event();
if (event.type() != Clutter.EventType.BUTTON_RELEASE)
return false;
handleSummaryClick: function(button) {
this.open();
return true;
},