Enable Mouse Pointer Snap To via Regedit
The Windows “Snap To” feature automatically moves the mouse pointer to the default button whenever a dialog box appears on the screen. While this setting can be adjusted through the standard Control Panel, modifying it via the Windows Registry Editor allows for automated scripting, remote management, or troubleshooting when GUI settings fail. This guide provides a direct, step-by-step walkthrough to enable or disable the mouse pointer snap-to-default button behavior using Regedit.
Step 1: Open the Registry Editor
- Press
Windows Key + Rto open the Run dialog box. - Type
regeditand pressEnteror click OK. - If prompted by User Account Control (UAC), click Yes to grant administrative permissions.
Step 2: Navigate to the Mouse Configuration Key
In the Registry Editor’s address bar or left navigation pane, go to the following path:
HKEY_CURRENT_USER\Control Panel\Mouse
Step 3: Modify the SnapToDefaultButton Value
- With the
Mousekey selected on the left, locate the string value named SnapToDefaultButton in the right-hand pane. - If the value does not exist, right-click an empty space in the right
pane, select New > String Value,
and name it
SnapToDefaultButton. - Double-click SnapToDefaultButton to open its edit window.
- Set the Value data field to one of the following:
- 1 — Enables the Snap-To-Default button behavior.
- 0 — Disables the Snap-To-Default button behavior.
- Click OK to save the changes.
Step 4: Apply the Changes
Registry changes made to the mouse settings are not applied immediately to active sessions. To make the new behavior take effect, sign out of your Windows user account and sign back in, or restart your computer.