-1
How to make a key work only in text type fields when pressed ?
Example:
$(":text").keydown(function(e) {
e.stopPropagation();
});
here missing the textarea:
if (e.keyCode == 70 && $(e.target).attr('type') != 'text' && $(e.target).attr('type') != 'password') {
}
Which key do you want to work only on text type fields??
– Fernando Leal
key and d!!!!
– Alan PS
I don’t understand. In which cases do you want these keys to do nothing?
– bfavaretto
Explaining which feature you want makes it easier to answer correctly. The question is not 100% clear...
– Sergio
What is the difference between this question and the another you did a few days ago? Your question is how to select the textual fields, or how to handle the keystroke events?
– mgibsonbr