daymannovaes / keybindjs Goto Github PK
View Code? Open in Web Editor NEWA mini Javascript Framework to configure what you want to execute when determined key sequence occurs.
A mini Javascript Framework to configure what you want to execute when determined key sequence occurs.
execute(open).when("f10");
execute(close).when("f10").config({
onKeyUp: true,
onKeyDown: false
});
execute.when("f10").config({
onKeyUp: close,
onKeyDown: open
});
execute(moveDown).when("tab+!shift");
execute(moveUp).when("tab+shift");
Keybind.when("f10").execute({
onKeyUp: close,
onKeyDown: open,
});
Keybind.when("f10").execute(open);
Keybind.when("f10").execute({
onKeyDown: close
});
myInput.config({
this: window //config for myInput
}).when("f10").config({
this: console //config for function
}).execute(function() {
this.log("you press f10");
});
myInput.when("f10").when("f11").execute(fn).execute(fn2);
myInput.when("f10").execute(fn).when("f11").execute(fn2);
myInput.execute(fn3); //only execute the function with the configs in myInput and fn3. One time!
myInput.when("f10").execute(fn).execute(fn2); //bind fn to f10 and execute fn2 now!
.when adiciona o atalho nos atalhos pendentes (do this, seja myInput ou Keybind).
.execute binda o primeiro atalho pendente com a function passada no execute.
myInput.when("f10");
myInput.execute(fn); //will bind fn to f10, I don't wanna this occurs
//consider to possibility of .when return a copy of myInput with pendent shorcut
//an empty .when (not followed by .execute) only will copy myInput, bind a pendent shortcut
//.execute will get the pendent shorcut and bind to function. If doesn't exists, execute the function
Configure test environment from KbJS and then, get all the test from TDD repo and put here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.