Enable arrow key in PowerButtonController instead of PowerButtonMenuScreenView.
The contents view of |menu_widget_| in PowerButtonController will be updated when showing menu, which means the destructor of PowerButtonMenuScreenView will not be called when DismissMenu. This will cause the arrow key traversal enabled value in FocusManager will not be restored correctly. Move the logic from PowerbuttonMenuScreenView into PowerButtonController to make sure the value can be restored correctly if dismiss the menu. Bug: 846639 Change-Id: I32ceebb8e81cf19e3fed119af0ccee3bd8c55638 Reviewed-on: https://chromium-review.googlesource.com/1114309 Commit-Queue: Min Chen <minch@chromium.org> Reviewed-by:Qiang Xu <warx@google.com> Reviewed-by:
Dan Erat <derat@chromium.org> Cr-Commit-Position: refs/heads/master@{#570323}
Showing
Please register or sign in to comment