Commit ea2d9501 authored by tommycli's avatar tommycli Committed by Commit bot

Plugin Power Saver: Accept SPACE or ENTER to unthrottle plugins.

Enhances accessibility of throttled plugins.

This enables these steps:
1. Using ChromeVox, focus throttled plugin using Alt+Shift+Arrow Keys.
2. Press ENTER or SPACE.

BUG=458285

Review URL: https://codereview.chromium.org/977653002

Cr-Commit-Position: refs/heads/master@{#318951}
parent c6bd676c
......@@ -8,6 +8,13 @@ function notifyDidFinishLoading() {
if (plugin.didFinishLoading)
plugin.didFinishLoading();
}
document.onkeydown = function(e) {
if (e.keyIdentifier == 'Enter' || e.keyIdentifier == 'U+0020') {
plugin.load();
e.preventDefault();
}
};
</script>
<link rel="stylesheet" href="plugin_placeholders.css"></link>
<style>
......
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