From a681a2ba02e18d5a06349ca3c564432ca5601ddd Mon Sep 17 00:00:00 2001 From: Marina Zhurakhinskaya Date: Thu, 13 Jan 2011 18:33:01 -0500 Subject: [PATCH] Remove _onKeyPress() function in Notification Its usage was removed in commit 4dd4c9f99f528667eb0b571a71ed23f61919f44b - "Use more actor.grab_key_focus() and less stage.connect('key-press-event')". --- js/ui/messageTray.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 57f5acf02..1e896a9c5 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -706,15 +706,6 @@ Notification.prototype = { this.destroy(); }, - _onKeyPress: function(actor, event) { - let symbol = event.get_key_symbol(); - if (symbol == Clutter.Escape) { - Main.messageTray.escapeTray(); - return true; - } - return false; - }, - ungrabFocus: function() { if (!this._hasFocus) return;