combokeys icon indicating copy to clipboard operation
combokeys copied to clipboard

document how to use on inputs

Open dey-dey opened this issue 11 years ago • 5 comments

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 avatar Dec 07 '14 02:12 dey-dey

@mightyiam

dey-dey avatar Dec 09 '14 20:12 dey-dey

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

I'm not sure about inputs.

mightyiam avatar Dec 10 '14 13:12 mightyiam

That worked for me:

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

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

HaNdTriX avatar Jan 15 '15 00:01 HaNdTriX

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

dey-dey avatar Jan 15 '15 02:01 dey-dey

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

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

mightyiam avatar Jan 15 '15 09:01 mightyiam