Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document how to use on inputs #7

Open
dey-dey opened this issue Dec 7, 2014 · 5 comments
Open

document how to use on inputs #7

dey-dey opened this issue Dec 7, 2014 · 5 comments

Comments

@dey-dey
Copy link

dey-dey commented Dec 7, 2014

had to debug a little bit to find this:
https://github.com/mightyiam/combokeys/blob/master/Combokeys/prototype/stopCallback.js#L19

"Allows you to set global bindings that work even inside of input fields."

not clear how this works. want to use some of this stuff on inputs and contenteditable

@dey-dey
Copy link
Author

dey-dey commented Dec 9, 2014

@mightyiam

@mightyiam
Copy link
Contributor

@daedelus-j Using on contentEditable elements is just the same as any element.

I'm not sure about inputs.

@HaNdTriX
Copy link

That worked for me:

combokeys.stopCallback = function(){
  return false;
};

http://stackoverflow.com/questions/21013866/mousetrap-bind-is-not-working-when-field-is-in-focus

@dey-dey
Copy link
Author

dey-dey commented Jan 15, 2015

@HaNdTriX ya I had to overwrite it. Should add to docs tho. Just not sure why it's there I guess

@mightyiam
Copy link
Contributor

A patch for some better documentation of this issue is welcome.

But, really, we have no docs in this spork...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants