DescriptionHandle dialog acclerators explicitly; nix default button switching.
Stop switching default dialog buttons on focus changes.
Remove default button and focus tracking, and button accelerators.
( this is undesirable complexity and looks odd )
Add and handle DialogClientView return and escape accelerators.
( for escape: invoke the cancel button or CancelWindow )
( for return: invoke the focused view, ok button, or AcceptWindow )
Still call SetIsDefault to keep the ok/cancel default button appearance.
Remove the redundant set_focusable call, the button style is focusable.
Only return true from TreeView::AcceleratorPressed if it's handled.
BUG=166075
TEST=[Return] and [Escape] work on dialogs as expected regardless of the focused view in the dialog.
R=sky@chromium.org
Patch Set 1 #Patch Set 2 : Simplify default button selection. #Patch Set 3 : Limit the focused view handling to LabelButton; update tests. #
Messages
Total messages: 10 (0 generated)
|