Git Product home page Git Product logo

keybindjs's People

Contributors

daymannovaes avatar

Watchers

 avatar  avatar

keybindjs's Issues

consider this comments and syntax

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.