Even if you are a proficient keyboard user, there will undoubtedly be times when your fingers don’t end up quite where you would like them to and you accidently hit keys other than the ones you intended. Sometimes this is not a serious problems, but there are plenty of scenarios in which it can be extremely irritating. For example, it is quite easy to press the Windows key and L by accident — you may be looking to left justify some text for example, and miss the Ctrl key — and this will lock your computer, requiring you to enter a password to get back to what you were doing.
This may not be something that happens all that often, but you can be sure that when it does happen it will be when you are rushing to get something finished quickly! You’ll be pleased to hear that there is a very quick and easy fix to avoid the problem — all you need to do is implement a simple registry tweak.
Press the Windows key and R at the same time to bring up the Run dialog, and then type regedit before pressing Enter — this will launch the Registry Editor. If a User Account Control dialog appear, just click Yes to continue.
Navigate to the key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System. With this key selected, click the Edit menu and select New > DWORD 32-bit value, name it DisableLockWorkstation and press Enter.
Double click the newly created item and change its value to 1 before pressing Enter.
You should not need to restart your computer for the new setting to take effect, and you should find that when you press the Windows key and L at the same time, nothing should happen!