jquery-keycombinator icon indicating copy to clipboard operation
jquery-keycombinator copied to clipboard

Add key filter to ignore keys from being registered by the KeyCombinator...

Open neonsamurai opened this issue 10 years ago • 1 comments

I made a small change to provide key filtering. I have yet to come up with a way to preserve default behaviour. Maybe you have advise? Basically I would like to preserve default behaviour of Tab (switch focus) and Enter (submit form).

....

It provides a new options field 'filterKeys' which takes an array of key chars according to what KeyCombinator returns from its function getKeyChar(keyCode).

eval_key_event() has been modified to return null in case the evaluated key is in the options.filterKeys array.

neonsamurai avatar Feb 24 '14 12:02 neonsamurai

Anything wrong with my changes?

neonsamurai avatar Mar 27 '14 08:03 neonsamurai