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>
This commit is contained in:
parent
c01973055f
commit
cf41f4a527
@ -151,14 +151,6 @@ var SearchController = GObject.registerClass({
|
|||||||
return Clutter.EVENT_STOP;
|
return Clutter.EVENT_STOP;
|
||||||
} else if (this._shouldTriggerSearch(symbol)) {
|
} else if (this._shouldTriggerSearch(symbol)) {
|
||||||
this.startSearch(event);
|
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;
|
return Clutter.EVENT_PROPAGATE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user