Skip to content

Commit

Permalink
Fixing specs for Element.Event.Pseudos.Keys.
Browse files Browse the repository at this point in the history
  • Loading branch information
arian authored and timwienk committed Sep 30, 2010
1 parent b597e07 commit 1610284
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Tests/Element/Element.Event.Pseudos.Keys.html
Expand Up @@ -10,20 +10,18 @@
<script>

var result = $('result');
document.body.addEvent('keydown:keys(shift+a)', function(){

document.addEvent('keydown:keys(shift+a)', function(){
result.set('html', result.get('html') + 'succes keydown:keys(shift+a)!<br>');
});


var result2 = $('result2');
document.body.addEvent('keyup:keys(shift+b)', function(){
document.addEvent('keyup:keys(shift+b)', function(){
result2.set('html', result2.get('html') + 'succes keyup:keys(shift+b)!<br>');
});

document.body.addEvent('keydown:keys(shift+++a)', function(e){
document.addEvent('keydown:keys(shift+++a)', function(e){
result.set('html', result.get('html') + 'succes keydown:keys(shift+++a)!<br>');
});


</script>

0 comments on commit 1610284

Please sign in to comment.