[gnome-shell] searchController: Get rid of activePage reference in key handling



commit cf41f4a527fe6e912c23eec29167c8255307105a
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Wed Feb 17 02:31:32 2021 +0100

    searchController: Get rid of activePage reference in key handling
    
    Even if activePage has been removed as part of commit 27627bd40, we've
    still a reference of it in key press handler.
    
    Given that there's no anymore an active page to redirect input to,
    remove these references, so that can be handled in the proper view to
    implement key-navigation.
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1688>

 js/ui/searchController.js | 8 --------
 1 file changed, 8 deletions(-)
---
diff --git a/js/ui/searchController.js b/js/ui/searchController.js
index 6fe76dafc2..5d25897c79 100644
--- a/js/ui/searchController.js
+++ b/js/ui/searchController.js
@@ -151,14 +151,6 @@ var SearchController = GObject.registerClass({
             return Clutter.EVENT_STOP;
         } else if (this._shouldTriggerSearch(symbol)) {
             this.startSearch(event);
-        } else if (!this._searchActive && !global.stage.key_focus) {
-            if (symbol === Clutter.KEY_Tab || symbol === Clutter.KEY_Down) {
-                this._activePage.navigate_focus(null, St.DirectionType.TAB_FORWARD, false);
-                return Clutter.EVENT_STOP;
-            } else if (symbol === Clutter.KEY_ISO_Left_Tab) {
-                this._activePage.navigate_focus(null, St.DirectionType.TAB_BACKWARD, false);
-                return Clutter.EVENT_STOP;
-            }
         }
         return Clutter.EVENT_PROPAGATE;
     }


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