jquery - Forcing javascript text selection to end when mouse leaves window -


we're running web-app in awesomium frame, same(ish) thing happens in stock chrome well:

a user can select amount of text on page, if mouseup when cursor outside window, 'selection' event never 'ends'. when type or move mouse window, acts mouseup never happened, , changes selection.

i've tried forcing mouseup event on given input element when window observes mouseleave, doesn't seem have worked, thing cancels selection event physically clicking mouse (unfortunately .click() doesn't work either)!

am missing particular event needs firing on specific element, or particular method can call end selection?

any massively appreciated!


edit: 1 of issues because selection never finishes, typing overwrites itself.

with text input, type in click @ end , drag (selecting text) don't release mouse button, if type you'll see 1 of issues we're encountering.

how can stop selection event happening (in instance, when mouse leaves window)?


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -