Files app: Change the search box collapse to focusout event
Change from click event to focusout event so it works for keyboard TAB key too. The fix is the following: 1. Listen to 'focusout' event within the whole search box. 2. Use requestAnimantionFrame() to give a chance to clicking on buttons on the left of the search box to receive the click event before the collapse. 3. Only collpase if the focus moved out of the whole search box. This also fixes issue:1058547. Test: browser_tests --gtest_filter="*searchHidingTextEntryField*" Bug: 1059016, 1058547 Change-Id: I4ad6441d1400e7de629bc6619a3eb69c88b29d50 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2097775 Commit-Queue: Luciano Pacheco <lucmult@chromium.org> Reviewed-by:Noel Gordon <noel@chromium.org> Reviewed-by:
Alex Danilo <adanilo@chromium.org> Cr-Commit-Position: refs/heads/master@{#749073}
Showing
Please register or sign in to comment