A sessão de perguntas e respostas de hoje nos é oferecida por cortesia da SuperUser - uma subdivisão do Stack Exchange, um agrupamento de sites de perguntas e respostas conduzido pela comunidade.
Foto cedida por midiman (Flickr)
A questão
Leitor de SuperUser O Google Services quer saber como redefinir o mapeamento de seu teclado depois que a brincadeira de um amigo do Dia da Mentira em abril estragou tudo:
My friend/enemy switched the mapping for the keys on my keyboard as an April Fool’s Day joke. When I press Y, Z appears on the screen. Some keys still function properly such as B, X, G, I, D, and a few others. Also, when I press Ctrl, it functions as the Enter key. Even the function keys have been switched around!!
I called a technician, but even he was unable to find the problem and told me that reinstalling the operating system was the only way to go. I really do not want to resort to calling my friend and asking him how to undo it.
I am using Windows 7 Professional 64-bit and thankfully, at least, there is no problem with my mouse. Can you help me?
Como você redefine o mapeamento de um teclado depois que uma brincadeira do Dia da mentira de abril a destrói?
A resposta
Os contribuidores do SuperUser RJFalconer e Ben N têm a resposta para nós. Primeiro, RJFalconer:
In this case, it sounds like a different keyboard layout has been set as the default (i.e. German, since that would cause a swap between Y and Z).
You can change your keyboard’s layout via the Control Panel:
- Clock, Language, and Region
- Region and Language
- Keyboards and Languages Tab -> Change Keyboards
Press Alt+Shift to switch keyboard layouts.
However, this does not explain the problem with the function keys. It is possible to arbitrarily remap keys via the registry. I think you will need a third-party tool to fix this (SharpKeys, for example).
Remember, you can also use the On Screen Keyboard to type with your mouse (Start MenuProgramsAccessoriesEase of AccessOn Screen Keyboard).
Seguido pela resposta de Ben N:
If you do not want to use third-party applications to reverse the SharpKeys modifications, you can cut out the middleman and edit the Registry directly.
Open the Registry Editor by navigating to C:Windows
egedit.exe in Windows Explorer. Once it is open, navigate here:
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlKeyboard Layout
If there are entries named Scancode Map or Value Scancode Map, delete them. Those entries are what causes Windows to remap incoming key presses from the keyboard.
Once you are done deleting them, restart your computer. Key mappings will be reset to their default settings. You can accomplish all of this with your mouse only and no keyboard.
References for the IDs
Main.cs in the SharpKeys Source Code
How to Disable the Insert Key in Windows [WikiHow]
Tem algo a acrescentar à explicação? Som desligado nos comentários. Quer ler mais respostas de outros usuários do Stack Exchange com experiência em tecnologia? Confira o tópico de discussão completo aqui.