How can I capture keyboard events (keypress,keyup, ) while dragging an image,bookmark?

Events like dragging an image, bookmark (which are not explicitly set to be draggable) and other modal dialogs like alert() and confirm() are known to "pause" the the event listening activity as well as any timers that are running in that context.

Events like dragging an image, bookmark (which are not explicitly set to be draggable) and other modal dialogs like alert() and confirm() are known to "pause" the the event listening activity as well as any timers that are running in that context. That said, you might want to look into the setCapture() method. It turns mouse capture on for a specified element.In other words, it redirects all mouse events to a specified DOM element until a call to .releaseCapture() is made.

It is traditionally used in drag-drop scenarios. Passing true as parameter will let current element (if a container) capture all mouse events.I.e. Cause the parent container to intercept events.

Passing false will let mouse events reach their intended targets before bubbling. These below links are a good starting-point.. blog.stchur.com/category/advanced-javasc... javascript.gakaa.com/object-setcapture-4....

Binding the event didn't work...tried with keypress,keydown,keyup SetCapture is just for IE, but I need it to be compatible with Chrome. I am trying something with addEventListener, but I am stuck with it... If I find the solution, I will post it.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions