I’m not exactly sure how to phrase this, so I couldn’t search it. Basically, I have a keydown() bind on $(document). I’d like to show() another div, and have all keydown events be rerouted to this div and prevented from firing off in the document handler. Is this even possible, or would I have to put all my main keybindings on another div and work from there?
I’m not exactly sure how to phrase this, so I couldn’t search it. Basically,
Share
e.stopPropagation, ore.preventDefault(depending on the situation)Where
eis the event.Ex: