unfocus: special case for embed-selections
commitcacf93b1390ac732d11f0a3eaf3a027d712ad3d3
authorJohn Foerch <jjfoerch@earthlink.net>
Sat, 18 Sep 2010 23:56:17 +0000 (18 19:56 -0400)
committerJohn Foerch <jjfoerch@earthlink.net>
Sat, 18 Sep 2010 23:56:17 +0000 (18 19:56 -0400)
tree62fdf410bb26a40c24ee5139fda8339d70268b85
parent1b198f4675ad625784c703445a6dfcf3ffd9e91b
unfocus: special case for embed-selections

Determined by experiment (with xulrunner 1.9.2.10pre) that when an
html:embed has focus, there is also an active selection starting on
the embed.  This meant that when an embed was focused, you had to
hit escape twice to unfocus it: once to clear the selection, and
once to unfocus the element.   With this patch, unfocus now handles
this case specially, and both clears the selection and blurs the
embed.
modules/buffer.js