Commit dca7db9e authored by Kyle Milka's avatar Kyle Milka Committed by Commit Bot

[NTP] Allow space to be used on the back arrow

In https://crrev.com/c/1249834 the tabbable element was changed
from a button to role=button so using space to press it no longer
worked.

Bug: 891652
Change-Id: I8dd7155de5deba6f2b25c3ba5cb39761f84eafdc
Reviewed-on: https://chromium-review.googlesource.com/c/1258880Reviewed-by: default avatarKristi Park <kristipark@chromium.org>
Commit-Queue: Kyle Milka <kmilka@chromium.org>
Cr-Commit-Position: refs/heads/master@{#596396}
parent 5fc3139b
...@@ -1222,9 +1222,10 @@ customBackgrounds.initCustomBackgrounds = function(showErrorNotification) { ...@@ -1222,9 +1222,10 @@ customBackgrounds.initCustomBackgrounds = function(showErrorNotification) {
customBackgrounds.showCollectionSelectionDialog( customBackgrounds.showCollectionSelectionDialog(
customBackgrounds.dialogCollectionsSource); customBackgrounds.dialogCollectionsSource);
}; };
$(customBackgrounds.IDS.BACK).onclick = backInteraction; $(customBackgrounds.IDS.BACK_CIRCLE).onclick = backInteraction;
$(customBackgrounds.IDS.BACK_CIRCLE).onkeyup = function(event) { $(customBackgrounds.IDS.BACK_CIRCLE).onkeyup = function(event) {
if (event.keyCode === customBackgrounds.KEYCODES.ENTER) { if (event.keyCode === customBackgrounds.KEYCODES.ENTER ||
event.keyCode === customBackgrounds.KEYCODES.SPACE) {
backInteraction(event); backInteraction(event);
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment