MATLAB Answers

How do I make the caps lock key an additional backspace?

21 views (last 30 days)
In Windows 10 I've made my caps lock key an additional backspace. In Matlab it does act like a backspace but also toggles CAPSLOCK. How do I turn this off? I've played around with my settings but haven't had any luck and there isn't anything online about this problem.

  9 Comments

Show 6 older comments
Benjamin Klein
Benjamin Klein on 24 Jul 2019
I've managed to solve this.
I found this on this Autohotkey forum:
"AutoHotkey uses a system-wide keyboard hook to suppress the keypress. In most cases this is sufficient, but there are some specialized APIs which will detect it anyway. If the other application uses one of these APIs, there's nothing that we can do about it. (In this case, remapping Capslock via the registry may be effective, since it changes the meaning of that physical key.) "
I followed this guide to Keyboard Remapping to remap the key directrly via the registery.
Using the following code, I created a .reg file and ran that. Works now.
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,0E,00,3a,00,3a,00,46,00,00,00,00,00
Rik
Rik on 24 Jul 2019
Since this solved your problem, feel free to put it in an answer and mark it as accepted answer.

Sign in to comment.

Accepted Answer

Benjamin Klein
Benjamin Klein on 24 Jul 2019
Edited: per isakson on 8 Jun 2020
The Problem is:
"AutoHotkey uses a system-wide keyboard hook to suppress the keypress. In most cases this is sufficient, but there are some specialized APIs which will detect it anyway. If the other application uses one of these APIs, there's nothing that we can do about it. (In this case, remapping Capslock via the registry may be effective, since it changes the meaning of that physical key.) "
Solution
Follow this guide to Keyboard Remapping to remap the key directrly via the registery.
Using the following code if you want to remap CAPSLOCK to BACKSPACE. Created a .reg file using a text editor, save and run it, then reboot. Details in the guide link.
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,0E,00,3a,00,3a,00,46,00,00,00,00,00

  0 Comments

Sign in to comment.

More Answers (0)

Products


Release

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!