Latching

View > View > Latching

Ctrl+Shift+L

Activates or deactivates the cursor latching.