Merge "Emit text direction with selection rectangle"