sometimes event.target is the document rather than a node.  refs #4609.
sometimes event.target is the document rather than a node.  refs #4609.

git-svn-id: 674a2d6b1e32e53f607eb824547723f32280967e@10723 560b804f-0ae3-0310-86f3-f6aa0a117693

redaktor/deliteful