[gnome-shell] workspacesView: Don't tie PgUp/PgDown to mapped state



commit dd7d33622875c70f3f5965f387e4de7c99fbf330
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Apr 8 17:31:54 2021 +0200

    workspacesView: Don't tie PgUp/PgDown to mapped state
    
    Both app grid and window picker are now always visible in the overview,
    so their handling of the PgUp/PgDown keys conflicts.
    
    Resolve that by checking for the overview state instead.
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1798>

 js/ui/workspacesView.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js
index 2c9da5c9bb..5025904187 100644
--- a/js/ui/workspacesView.js
+++ b/js/ui/workspacesView.js
@@ -1142,7 +1142,8 @@ class WorkspacesDisplay extends St.Widget {
     }
 
     _onKeyPressEvent(actor, event) {
-        if (!this.mapped)
+        const { ControlsState } = OverviewControls;
+        if (this._overviewAdjustment.value !== ControlsState.WINDOW_PICKER)
             return Clutter.EVENT_PROPAGATE;
 
         const { workspaceManager } = global;


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