Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
notwaldorf committed Jul 30, 2018
1 parent f3f31c3 commit c9ad183
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@ npm install --save @polymer/iron-a11y-keys
</head>
<body>
<iron-a11y-keys id="keys" keys="left right down up"></iron-a11y-keys>

<script>
// Where to listen for the keys.
keys.target = document.body;
keys.addEventListener('keys-pressed', function(event) {
console.log(event.detail);
});
</script>
</body>
<script>
// Where to listen for the keys.
keys.target = document.body;
keys.addEventListener('keys-pressed', function(event) {
console.log(event.detail);
});
</script>
</html>
```
### In a Polymer 3 element
Expand Down
6 changes: 2 additions & 4 deletions test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@
<body>
<script>
// Load and run all tests (.html, .js) as one suite:
WCT.loadSuites([
'basic-test.html?wc-shadydom=true&wc-ce=true',
'basic-test.html'
]);
WCT.loadSuites(
['basic-test.html?wc-shadydom=true&wc-ce=true', 'basic-test.html']);
</script>


Expand Down

0 comments on commit c9ad183

Please sign in to comment.