0.8.0
Released 06/26/2015
Summary:
- .type() now implements all DOM events to simulate every aspect of typing on a real keyboard.
- All of the type docs have been updated to reflect these changes.
Features:
- .type() now outputs "Key Events Table" which is a
console.tableof every key typed, thecharCode, all vents that fired, and whether any werepreventedDefault. - .type() now accepts the following special character sequences:
{selectall},{del},{backspace},{esc},{{},{enter},{leftarrow},{rightarrow}. - .type() implements
cursorandselectionandrangeaccurately like a real keyboard. - .type() now fires change events exactly like real browsers when
{enter}is used. - .type() will fire
textInputandinputevents exactly like a real browser. Fixes #7. - .type() now follows all of the spec in regards to
preventingDefaulton any event that would insert a character such askeydown,keypress,textInput. - .type() events should be
100%identical to real browserKeyboardEventsincludingcharCode,which,keyCode,data, etc. - .type() now inserts a small delay
10msbetween each keystroke to simulate a real user typing. inputevents are now correctly fired when .select() chooses an<option>.changeevents are now fired exactly how a browser does (when an input loses focus and its value has changed since its last focus event). You'll see these fire after you use .blur() directly, or use anotheraction commandon another element.
Bugfixes:
- Using .type() in an
input[type=number]will no longer prepend the value. Fixes #26. [contenteditable]elements can now be focused and blurred.abortingduring .click() / .dblclick() now correctly cancels remaining queued click/dblclick events.
Misc: