appDisplay: Use AppFolderDialog grabHelper to obtain key focus on popup()

When an app folder is opened it would do so without grabbing the
keyboard focus, so one could not navigate with the arrow keys without
pressing Tab. This adds the focus parameter to popup()'s grab, which
sets the key focus to the elements of the folder when it is opened.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3338>
This commit is contained in:
sorelz 2024-07-02 16:17:35 -04:00
parent a04b35b569
commit 9569239ec5

View File

@ -2899,6 +2899,7 @@ export const AppFolderDialog = GObject.registerClass({
this._isOpen = this._grabHelper.grab({ this._isOpen = this._grabHelper.grab({
actor: this, actor: this,
focus: this._editButton,
onUngrab: () => this.popdown(), onUngrab: () => this.popdown(),
}); });