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

Unified Diff: polymer_0.5.0/bower_components/core-a11y-keys/demo.html

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 12 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
Index: polymer_0.5.0/bower_components/core-a11y-keys/demo.html
diff --git a/bower_components/core-a11y-keys/demo.html b/polymer_0.5.0/bower_components/core-a11y-keys/demo.html
similarity index 78%
rename from bower_components/core-a11y-keys/demo.html
rename to polymer_0.5.0/bower_components/core-a11y-keys/demo.html
index b120415c4afc655c725720db2d44c98462ba406d..27e68e3132cf6c5833c526c60b7eccd288cc1b76 100644
--- a/bower_components/core-a11y-keys/demo.html
+++ b/polymer_0.5.0/bower_components/core-a11y-keys/demo.html
@@ -12,11 +12,8 @@
<head>
<meta charset="UTF-8">
<title>Core A11y Keys demo</title>
- <script src="../platform/platform.js"></script>
+ <script src="../webcomponentsjs/webcomponents.js"></script>
<link rel="import" href="core-a11y-keys.html">
-</head>
-<body>
- <template is="auto-binding">
<style>
div {
height: 100px;
@@ -24,12 +21,16 @@
background: gray;
}
</style>
- <core-a11y-keys id="a11y" keys="* pageup pagedown left right down up shift+a alt+a home end" target="{{$.target}}" on-keys-pressed="{{print}}"></core-a11y-keys>
- <div id="target" tabindex="0">focus this</div>
+</head>
+<body>
+ <template is="auto-binding">
+ <span>Press any of these keys: {{keys}}</span>
+ <core-a11y-keys id="a11y" keys="{{keys}}" on-keys-pressed="{{print}}"></core-a11y-keys>
<pre id="output"></pre>
</template>
<script>
addEventListener('template-bound', function(ev) {
+ ev.target.keys = "* pageup pagedown left right down up shift+a alt+a home end space enter"
ev.target.print = function(ev) {
console.log(ev.detail);
this.$.output.textContent += ev.detail.key + ' pressed!\n';

Powered by Google App Engine
This is Rietveld 408576698