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

Side by Side Diff: chrome/renderer/resources/plugins/plugin_poster.html

Issue 2104103002: Convert Event#keyIdentifier (deprecated) to Event#key (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch file manager test Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, user-scalable=no"> 5 <meta name="viewport" content="width=device-width, user-scalable=no">
6 <script> 6 <script>
7 window.onload = function() { 7 window.onload = function() {
8 if (plugin.didFinishLoading) 8 if (plugin.didFinishLoading)
9 plugin.didFinishLoading(); 9 plugin.didFinishLoading();
10 }; 10 };
11 11
12 window.onkeydown = function(e) { 12 window.onkeydown = function(e) {
13 if (e.keyIdentifier == 'Enter' || e.keyIdentifier == 'U+0020') { 13 if (e.key == 'Enter' || e.key == ' ') {
14 plugin.load(); 14 plugin.load();
15 e.preventDefault(); 15 e.preventDefault();
16 } 16 }
17 }; 17 };
18 </script> 18 </script>
19 <link rel="stylesheet" href="plugin_placeholders.css"></link> 19 <link rel="stylesheet" href="plugin_placeholders.css"></link>
20 <style> 20 <style>
21 #outer { 21 #outer {
22 border: none; 22 border: none;
23 cursor: pointer; 23 cursor: pointer;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 if (plugin.didFinishIconRepositionForTesting) { 97 if (plugin.didFinishIconRepositionForTesting) {
98 // Defer until reflow complete. 98 // Defer until reflow complete.
99 window.setTimeout(function() { 99 window.setTimeout(function() {
100 plugin.didFinishIconRepositionForTesting(); 100 plugin.didFinishIconRepositionForTesting();
101 }); 101 });
102 } 102 }
103 }; 103 };
104 </script> 104 </script>
105 </body> 105 </body>
106 </html> 106 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698