Track mouse clicks in the editor window -- buggy

This is buggy because it seems to require two clicks to override the
codemirror clicks. So the first click is not logged (unless it is in an
area where there ISNT code.)