0.8.0
Released Released on June 25, 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 aconsole.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()implementscursorandselectionandrangeaccurately like a real keyboard..type()now fires change events exactly like real browsers when{enter}is used..type()will firetextInputandinputevents exactly like a real browser. Fixes #7..type()now follows all of the spec in regards topreventingDefaulton any event that would insert a character such askeydown,keypress,textInput..type()events should be100%identical to real browserKeyboardEventsincludingcharCode,which,keyCode,data, etc..type()now inserts a small delay10msbetween 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 aninput[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: