22

This is driving me bonkers as I use both a mac and windows machine, on the mac to move the cursor through words I press OPTION+ARROW, on a PC it's CTRL+ARROW, I am not too worried about the reversed keys, but what is annoying is when I get to my windows computer and I accidentally press the WINDOWS key by mistake with an arrow key it docks the window to the side of the screen, which is quite troubling, I'd prefer it to do nothing as it did in XP and Vista, any ideas?

1
  • Oh Internet. Precisely my issue. Thanks for having asked the question.
    – tomsihap
    Commented Nov 13 at 11:58

7 Answers 7

4

Microsoft has a little doohickie that will disable your Windows key for you here, or you can disable it yourself by modifying your registry:

  • Click Start, click Run, type regedt32, and then click OK.
  • On the Windows menu, click HKEY_LOCAL_ MACHINE on Local Machine.
  • Double-click the System\CurrentControlSet\Control folder, and then click the Keyboard Layout folder.
  • On the Edit menu, click Add Value, type in Scancode Map, click REG_BINARY as the Data Type, and then click OK.
  • Type 00000000000000000300000000005BE000005CE000000000 in the Data field, and then click OK.
  • Close Registry Editor and restart the computer.
4
  • Fantastic goblinbox, I haven't restarted yet but it looks like disabling the windows key will do the perfect thing for me, I never used it, even for the start menu I have always pressed CTRL+ESC, thanks a billion :)
    – Brett Ryan
    Commented Mar 8, 2011 at 1:00
  • No kidding! It's a rare user who needs that Windows key, methinks.
    – goblinbox
    Commented Mar 8, 2011 at 1:13
  • 2
    This was BAD. Perhaps I typed in the binary number wrong (Windows 10 would not let me paste it in), but the end result after a reboot is my keyboard did not work. Tried both USB and PS2. Had to use on-screen keyboard to remove the registry value and get my keyboard working again. Be careful with this trick. Commented Sep 9, 2016 at 23:33
  • 4
    This is not an answer to the question. The question is not asking how to disable the Win key, it is asking how to disable the Win+Arrow keys. The user who needs that Win key is not rare at all.
    – Mike Nakis
    Commented Dec 20, 2018 at 10:13
30

There is an extremely simple answer to this question which I haven't seen described anywhere else.

To enable or disable the Win + arrow keys that move windows around (docking, maximizing, moving to other monitors, etc), go to the Ease of Access Center in the Control Panel:

Control Panel\Ease of Access\Ease of Access Center\Make it easier to focus on tasks

On this screen, the section "Make it easier to manage windows" has a checkbox for "Prevent windows from being automatically arranged when moved to the edge of the screen". Checking this box disables all the Win + arrow keys.

Ease of Access Dialog

5
  • 8
    This worked for Win + (right, left), and is a great answer. But it doesn't work for Win + (up, down). Thanks tho'!
    – Pedro
    Commented Nov 21, 2018 at 19:01
  • @Pedro: It definitely does work for Win+up & Win+down - I just re-checked and it controls all the arrow keys. Perhaps you're having a different problem - post a new response with more details and maybe someone can figure out what's going on.
    – chasbas
    Commented Nov 23, 2018 at 13:16
  • I confirm that this solution works for all Win+Arrow keys. And this solution is the answer, because the question is not about disabling the Win key, (which is useful for other things,) it is specifically about disabling the Win+Arrow keys. Thanks @chasbas!
    – Mike Nakis
    Commented Dec 20, 2018 at 10:11
  • I can confirm that on Windows 10, this option only disables the Left and Right window snapping behaviour. It doesn't change the maximize/minimise shortcuts.
    – xerxesb
    Commented Jul 18, 2019 at 22:07
  • I can also confirm that on Windows 10, this disables the Left and Right snapping behavior, but not the Up and Down (maximize/minimize) behavior. But it ALSO disables mouse-dragging a window to the edge of the screen and having it maximize vertically/half-screen/full-screen, depending on which edge.
    – Marc
    Commented May 18, 2022 at 19:29
9

You can use AutoHotKey to disable any standard windows shortcut keys. This does not involve updating the registry. Simply download the standalone autohotkey program. Then create a file, say "DisableWinKeys.ahk" on Desktop. Open it in Notepad and write following in it:

#right::return ;This will disable the effect of Win + -> 
#left::return ;This will disable the effect of Win + <- 

Save the file and open it with ahk.exe from AutoHotKey folder. That's it. If you close the "H" icon from System Tray, it will enable the shortcuts again.

6
  • Wow, that does sound neat. I've already tried the registry approach though this one does seem very handy indeed, especially for those who still want the windows key to open the start menu.
    – Brett Ryan
    Commented Mar 8, 2011 at 1:43
  • Thanks for sharing. For a version including the shift key and the up and down arrows see snipt.org/BDag6 Commented Dec 19, 2013 at 14:17
  • 1
    This didn't work for me, but two small modifications fixed it. Make the first line #right:return and the second #left::return. The + breaks the key mapping, apparently including the literal plus key in the hotkey definition. As for return, without that, control flow falls down into the following definition. An immediate return causes AHK to do nothing with the keystroke, as the OP wanted. Commented Oct 16, 2016 at 14:48
  • You still have the + signs in your script, which as I said caused problems here when I tried it. Commented Jan 16, 2017 at 23:05
  • @WarrenYoung The plus sign ("+") indicates "Shift" key. If you do not need shift key as part of the hotkey, you can remove it. Also, updated the script. Probably, the changes were not save the last time I edited it.
    – AshTee
    Commented Feb 14, 2017 at 17:36
6

Microsoft PowerToys will let you do this

https://github.com/microsoft/PowerToys

enter image description here

1
  • This should be the accepted answer. The only one which actually works and there is no need to disable whole snapping functionality or disable windows logo key (and therefore all other shortcuts like Win + R)
    – komidawi
    Commented Dec 28, 2023 at 12:02
4

In Windows 11 open Settings from the start menu, then navigate to

System > Multi-Tasking > Snap windows

You'll have an option to toggle the Snap Windows options. Turning this option off will disable the windows key + left/right arrow shortcut.

0

For non-power-users, I have just answered a similar question.

Here: https://superuser.com/a/129205/134004

-1

Just checked on Windows 10 at Azure VD - works for Win+ left/right arrow. For up/down - still maximizes/minimizes the window, which is fine for me.

The path is: Control Panel\Ease of Access\Ease of Access Center\Make it easier to focus on tasks

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .