Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4295)

Unified Diff: chrome/renderer/resources/plugin_poster.html

Issue 977653002: Plugin Power Saver: Accept SPACE or ENTER to unthrottle plugins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: take suggestions. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/plugin_poster.html
diff --git a/chrome/renderer/resources/plugin_poster.html b/chrome/renderer/resources/plugin_poster.html
index e75a59885b895897862a363ff2fe1f4cf596c86d..9dc99c4189eb5d5a1787e6bad31a193c947c3f22 100644
--- a/chrome/renderer/resources/plugin_poster.html
+++ b/chrome/renderer/resources/plugin_poster.html
@@ -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>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698