Merge "Move mouse selection handling logic to Editor."