[OsSettingsSearch] Route change when a row is clicked or keydown 'Enter'
* Keydown 'Enter' causes the selected row to trigger a route change. * If the selected row is focused, keydown 'Enter' triggers route change. * Clicking on specific row causes the row to trigger a route change (iron-list also causes the row to become the selected row on click). * If a user deselects a row, re-select the row (one row should always be selected). Deselection is an <iron-list> behavior we must work around. * Add test to confirm <os-search-result-row> has the correct behaviors. * A route change won't cause the cr-input to lose its text, nor will it cause the results to be lost, nor the selected item to be deselected. Bug: 1056909 Change-Id: I00c151acd7439b916b4b01bec188cb48197c775d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2123787 Commit-Queue: Regan Hsu <hsuregan@chromium.org> Reviewed-by:Kyle Horimoto <khorimoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#755102}
Showing
Please register or sign in to comment