mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
Revert "main: Only restore key focus on pop when modal actor is still focused"
This one caused a regression and now keys appear to get stuck while raising the screenShield, so revert it. Hopefully we can fix the original problem in a better way next cycle by tracking key focus changes internally in ClutterGrab. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7446 This reverts commit4d544d7b56. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3231> (cherry picked from commita64424864b)
This commit is contained in:
parent
c5131b5364
commit
3a84dc0fbf
1 changed files with 1 additions and 2 deletions
|
|
@ -666,8 +666,7 @@ function popModal(grab, timestamp) {
|
||||||
if (record.prevFocus)
|
if (record.prevFocus)
|
||||||
record.prevFocus.disconnect(record.prevFocusDestroyId);
|
record.prevFocus.disconnect(record.prevFocusDestroyId);
|
||||||
actionMode = record.actionMode;
|
actionMode = record.actionMode;
|
||||||
if (global.stage.key_focus === record.actor)
|
global.stage.set_key_focus(record.prevFocus);
|
||||||
global.stage.set_key_focus(record.prevFocus);
|
|
||||||
} else {
|
} else {
|
||||||
// If we have:
|
// If we have:
|
||||||
// global.stage.set_focus(a);
|
// global.stage.set_focus(a);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue