Latching

View > Latching

Ctrl+Shift+L

Activate or deactivate the cursor latching.