Win7 ESC and CapsLock Interchange

Source: Internet
Author: User

A day of mercy, so bought a mechanical keyboard. Cherry g80-3494

All aspects of the red axis are good is there is a problem I often use VIM, which ESC. And the F-key area is too far away from the main keyboard area.

People who are accustomed to the vim pattern have a lazy habit of leaving the main keyboard area without liking the fingers.

So I think about how to solve the problem Baidu is a solution to it.

Modify the registry file directly into this.

Windows Registry Editor Version 5.00[hkey_local_machine\system\currentcontrolset\control\keyboard Layout] "Scancode Map "=hex:00,00,00,00,00,00,00,00,03,00,00,00,3a,00,01,00,01,00,3a,00,00,00,00,00

Then restart the computer to OKL. Just do it.

Focus on the above code in the long string of binary, for easy analysis, split into every 8-bit line, and add line number, the result is as follows:

1.00,00,00,00,2. 00,00,00,00,3.03,00,00,00,4. 3a,00,01,00,5. 01,00,3a,00,6. 00,00,00,00

  

The first two lines and the last line are fixed, all 8 0.

Line 3rd, that is, how many keys have changed, this example is 3, how to calculate? Starting from line 4th, to the very last line (although strictly speaking, the last row is not counted), each row counts 1, 4, 5, 6 rows, just 3.

The 4th line, the front and back 4 digits, respectively represents a key. This example maps the keys of the 3a00 to 0100. 3a00 represents the CapsLock key, and 0100 represents the ESC key.

Line 5th, in the same vein, 0100 of the keys are mapped to 3a00, that is, the ESC map is CapsLock.

Line 6th, has been said, the last line, fixed 8 a 0. If you need to add more mappings, you can add more than 4, 5 rows on top of this line. The final result, of course, is to combine rows into one line.

Appendix

Some key mapping table, need to see all the control, please click on the relevant information 4.

ESCAPE01 00tab0f 00Caps lock3a 00Left Alt38 00Left ctrl1d 00Left shift2a 00Left windows5b e0right Alt38 e0right ctrl1d e0r ight Shift36 00Right windows5c e0backspace0e 00delete53 e0enter1c 00space39 00insert52 e0home47 e0end4f E0Num Lock45 00Pag E Down51 e0page Up49 e0scroll Lock46 00

  

There is also a special value of--00 00, which means nothing, if you want to disable a key, just map to 00 00.

In particular, I have only tested CapsLock and ESC keys, others have not been tested, if there is an incorrect place, also hope to inform.

Content excerpted from: http://xyztony1985.blog.163.com/blog/static/3611782011752420104/

Win7 ESC and CapsLock Interchange

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.