[polari] userList: Remove obsolete key-press handler



commit 80a40cd4c0f82e91c84e2138cc7a4953575b70c2
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Sep 3 18:46:31 2015 +0200

    userList: Remove obsolete key-press handler
    
    GtkSearchEntry already handles Escape to clear the entry (and emit
    GtkSearchEntry::stop-search) nowadays, so we don't need to handle
    key presses ourselves.

 src/userList.js |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/src/userList.js b/src/userList.js
index b8fd280..696aaec 100644
--- a/src/userList.js
+++ b/src/userList.js
@@ -58,15 +58,6 @@ const UserListPopover = new Lang.Class({
         this._entry = new Gtk.SearchEntry();
         this._entry.connect('search-changed',
                             Lang.bind(this, this._updateFilter));
-        this._entry.connect('key-press-event', Lang.bind(this,
-            function(w, event) {
-                let [, keyval] = event.get_keyval();
-                if (keyval == Gdk.KEY_Escape) {
-                    this._entry.text = '';
-                    return Gdk.EVENT_STOP;
-                }
-                return Gdk.EVENT_PROPAGATE;
-            }));
         this._revealer.add(this._entry);
 
         this._box.show_all();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]