Commit 70e6d71a authored by John Lee's avatar John Lee Committed by Commit Bot

History WebUI: Unselect all items when pressing escape

Bug: 1142082
Change-Id: I87d4970e5e20e3f8950e6e5f25b843e9c8fa096c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2511857Reviewed-by: default avatarRebekah Potter <rbpotter@chromium.org>
Commit-Queue: John Lee <johntlee@chromium.org>
Cr-Commit-Position: refs/heads/master@{#824978}
parent f6aaa6a4
...@@ -309,6 +309,11 @@ import './strings.js'; ...@@ -309,6 +309,11 @@ import './strings.js';
e.preventDefault(); e.preventDefault();
} }
} }
if (e.key === 'Escape') {
this.unselectAll();
e.preventDefault();
}
}, },
/** @private */ /** @private */
......
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