I have been looking for a way to have a key combination fire an alert,
but searching the group I have not really found what I was looking
for.  There are some plugins that I have found, but I would rather
just use jQuery without anything additional.

So, I found this:

$("input:text").bind("keypress",function(e) {
                var key = e.keyCode || e.charCode;
                if(key == 13) {
                        alert("You clicked a key!");
                }
        }
)

How could I have a key combination fire such, such as cntrl + d or
something similar?

Reply via email to