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
@ -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…
Reference in New Issue
Block a user