keithamus / jwerty

⌨ Awesome handling of keyboard events
http://keithamus.github.io/jwerty
Other
1.21k stars 109 forks source link

Firing actually doesn't do anything in latest Chrome? #57

Open dandv opened 9 years ago

dandv commented 9 years ago

JSBin

<!doctype html>
<html lang="en-US">

<head>
<script src="https://rawgit.com/keithamus/jwerty/master/jwerty.js"></script>
</head>

<body>

<form id="myform">
  <input type="text">
  <textarea>
  aa
  bb
  </textarea>
</form>  

<script>
jwerty.fire('a', 'input', '#myForm');
jwerty.fire('ctrl+a', 'textarea');
</script>

</body>
</html>

After loading the page, I don't see an a in the input, or the textarea contents selected.

Does fire only trigger bound events? If so, that should be mentioned in the docs.