How to make a key work only in text-type fields when pressed?
Example:
$(":text").keydown(function(e) {
e.stopPropagation();
});
here is missing the textarea:
if (e.keyCode == 70 && $(e.target).attr('type') != 'text' && $(e.target).attr('type') != 'password') {
}