La séance de questions-réponses d'aujourd'hui nous est offerte par la sous-division SuperUser de Stack Exchange, un groupe de sites Web de questions-réponses dirigé par la communauté.
Photo gracieuseté de midiman (Flickr).
La question
Lecteur superutilisateur Google Services veut savoir comment réinitialiser la cartographie de son clavier après la farce d'un copain du jour du poisson d'avril:
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?
Comment réinitialiser le mappage d'un clavier après une farce du poisson d'avril le détruit?
La réponse
Les contributeurs du super-utilisateur, RJFalconer et Ben N, ont la solution pour nous. Tout d'abord, 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).
Suivi de la réponse 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]
Avez-vous quelque chose à ajouter à l'explication? Sound off dans les commentaires. Voulez-vous lire plus de réponses d'autres utilisateurs de Stack Exchange doués en technologie? Découvrez le fil de discussion complet ici.