|
|
77f9b1 |
From 8bea7c892c24694efda753ad1d76ab470032c6fe Mon Sep 17 00:00:00 2001
|
|
|
77f9b1 |
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
|
|
|
77f9b1 |
Date: Thu, 15 Dec 2022 17:09:45 +0100
|
|
|
77f9b1 |
Subject: [PATCH] desktop-icons: Don't grab focus on click
|
|
|
77f9b1 |
|
|
|
77f9b1 |
We will move keyboard focus away immediately, either when opening
|
|
|
77f9b1 |
the context menu or when starting the rubberband.
|
|
|
77f9b1 |
|
|
|
77f9b1 |
In theory the grab is still useful, because it will move keyboard
|
|
|
77f9b1 |
focus to the grid when restoring focus after ending the rubberband
|
|
|
77f9b1 |
or closing the menu, however as keyboard navigation support is
|
|
|
77f9b1 |
lacking, all it does is preventing the focus to return to the
|
|
|
77f9b1 |
focus window after the operation.
|
|
|
77f9b1 |
---
|
|
|
77f9b1 |
extensions/desktop-icons/desktopGrid.js | 2 --
|
|
|
77f9b1 |
1 file changed, 2 deletions(-)
|
|
|
77f9b1 |
|
|
|
77f9b1 |
diff --git a/extensions/desktop-icons/desktopGrid.js b/extensions/desktop-icons/desktopGrid.js
|
|
|
77f9b1 |
index 002803c7..9a89d5a3 100644
|
|
|
77f9b1 |
--- a/extensions/desktop-icons/desktopGrid.js
|
|
|
77f9b1 |
+++ b/extensions/desktop-icons/desktopGrid.js
|
|
|
77f9b1 |
@@ -559,8 +559,6 @@ var DesktopGrid = GObject.registerClass({
|
|
|
77f9b1 |
let button = event.get_button();
|
|
|
77f9b1 |
let [x, y] = event.get_coords();
|
|
|
77f9b1 |
|
|
|
77f9b1 |
- this._grid.grab_key_focus();
|
|
|
77f9b1 |
-
|
|
|
77f9b1 |
if (button == 1) {
|
|
|
77f9b1 |
let shiftPressed = !!(event.get_state() & Clutter.ModifierType.SHIFT_MASK);
|
|
|
77f9b1 |
let controlPressed = !!(event.get_state() & Clutter.ModifierType.CONTROL_MASK);
|
|
|
77f9b1 |
--
|
|
|
77f9b1 |
2.38.1
|
|
|
77f9b1 |
|