Few additions

don't track clicks on own pane window to enable copying of text
use window of event because keyWindow might have different position and not key one
if view wasn't found in contentView, check toolbar for it