Input-Sim
This simulates a HTMLInputElement (type text) in memory. This allows you to
run events, key combinations, or methods on it to affect the input's value
and selected range.
Usage
Keys
InputSim.KEYS
Is a Constant that provides some keyCode mappings and methods.
InputSim.KEYS.isDigit(keyCode);
InputSim.KEYS.isDirectional(keyCode);
Input
InputSim.Input
This is the class you can use to create your input instances from.
var input = new InputSim.Input('Mos Eisley');
There are many methods available to control and modify this input.
input.deleteWordForward();
Please see our documentation for a more in depth overview.
Pull Requests
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Any contributors to the master esnext repository must sign the Individual
Contributor License Agreement (CLA). It's a short form that covers our
bases and makes sure you're eligible to contribute.
When you have a change you'd like to see in the master repository, send a pull
request. Before we merge your
request, we'll make sure you're in the list of people who have signed a CLA.