Chromium Code Reviews
DescriptionFix initial focus of Task Manager for ChromeOS.
The current code appeared to work because a DialogDelegate actually
defaults to focusing the default button ("End Task") rather than nothing
(like a default WidgetDelegate). Thus when you press Shift+Escape the
row for the active tab is selected, and "End Task" is focused. This
"fixed" the blue line around the table.
But on ChromeOS it's possible to have no windows open and press
Shift+Escape, and then the Browser row is selected initially. You're not
allowed to end that task, so the button is disabled.
Widget::SetInitialFocus has code to advance focus if the initial focus
View can't actually receive focus, hence the table winds up receiving
focus.
BUG=702489
Review-Url: https://codereview.chromium.org/2784903002
Cr-Commit-Position: refs/heads/master@{#460611}
Committed: https://chromium.googlesource.com/chromium/src/+/b554454239ebb239fc7da684b70b6be8ae860c8b
Patch Set 1 #
Messages
Total messages: 14 (8 generated)
|
||||||||||||||||||||||||||||