[NEW] auto active the cursor position when switching different tabs