mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
modalDialog: Ensure to let focus manager handle key events
Since the grab no longer lets events bubble up to the stage unstopped, we should be forwarding the key events that bubbled up to the dialog to maybe cycle focus. Fixes focus cycling on keyboard navigation inside dialogs. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2140>
This commit is contained in:
parent
b3f5fdcb6b
commit
fcf70aa021
1 changed files with 7 additions and 0 deletions
|
|
@ -101,6 +101,13 @@ var ModalDialog = GObject.registerClass({
|
|||
this.notify('state');
|
||||
}
|
||||
|
||||
vfunc_key_press_event() {
|
||||
if (global.focus_manager.navigate_from_event(Clutter.get_current_event()))
|
||||
return Clutter.EVENT_STOP;
|
||||
|
||||
return Clutter.EVENT_PROPAGATE;
|
||||
}
|
||||
|
||||
clearButtons() {
|
||||
this.dialogLayout.clearButtons();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue