GNOME Bugzilla – Bug 788542
3.26.1: Regression in keyboard navigation of power off dialog
Last modified: 2017-10-26 16:21:33 UTC
gnome-shell 3.26.1 Ubuntu 17.10 Open the Power Off dialog. Press Esc to cancel. That works, but when I do it a second time, it doesn't work. This appears to be a regression since 3.26.
Created attachment 360947 [details] [review] dialog: Reset initial focus on clear Since 0b02f757f862 we track the button that should have key focus when the dialog is opened. However when the dialog is reused, the button may get removed - clear the initial focus in that case to allow setButton() to set a new one.
Thanks. That patch fixes my issue.
*** Bug 788641 has been marked as a duplicate of this bug. ***
*** Bug 788972 has been marked as a duplicate of this bug. ***
Review of attachment 360947 [details] [review]: ::: js/ui/dialog.js @@ +136,3 @@ this.buttonLayout.destroy_all_children(); this._buttonKeys = {}; + this._initialKeyFocus = null; I guess it would be safer to connect to the destroy signal when we assign an actor to this._initialKeyFocus like we already do in modalDialog.js
Created attachment 361972 [details] [review] dialog: Reset initial focus on destroy Makes sense to me.
Review of attachment 361972 [details] [review]: lgtm
Attachment 361972 [details] pushed as 100d6a7 - dialog: Reset initial focus on destroy