Skip to content

Commit

Permalink
No more form submission on enter key press
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Migurski committed Jul 28, 2011
1 parent 61ed554 commit 1597b7d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions record.php
Expand Up @@ -182,6 +182,15 @@
source: clients
});
});

YUI().use('event-key', function(Y)
{
var handle = Y.on('key', function(e)
{
e.halt();
},
'input[type=text]', 'down:13', Y);
});

//-->
</script>
Expand Down

0 comments on commit 1597b7d

Please sign in to comment.