I just purchased a knockoff apple keyboard on ebay. When i got it today, I found out that it doesn't have an escape key, it only has this square box design where the escape key should be. Is there any way to remap that one key so it becomes the escape key? I have tried keyremap4macbook to no avail. Any help would be greatly appreciated. How To Change Your AirDrop Name On iPhone, Mac, & iPod, What Is “Sign In With Apple”, How To Use It, and How Safe It Is. If you can’t find the app that you want on the list, choose “Other” then find the app by using the “Open” dialog (note that some apps do not allow users to create custom keyboard shortcuts). First, make sure that you check the box in Step 3 above.Next, in that.
If you are using Linux on MacBook or a key on your keyboard is broken or you have a special key on your keyboard and you want to use it differently than it is designed then you may feel the need to remap the keys of your keyboard. Remapping the keys means changing the input behaviour of your keyboard and making it work as we want, not as it was intended. In this post you will learn to remap the keys on Linux using ‘xmodmap’ and ‘xkb’ which are pre-installed on most of the linux distros. If you want to remap the keys in Windows then you can follow this post.
The ‘Delete’ key is broken in my laptop so I am going to remap it to ‘Insert’ key. The procedure is same for other keys as well. There are two methods for doing this, first method is safe and recommended method but if first method does not work then go for second method which includes modifying the system file and is not preferred. The steps are as follows:
First Method: Safe and recommended method
Step 1: Find the KeyCode (number assigned to key) and Keysym (name of key) for your desired keys to swap
In my case 118 is KeyCode for Insert key and 119 is for Delete key.
Step 2: Swap the keys by issuing following command:
Now your keys are swapped but this action is not persistent and only works until you reboot. If you want to make your changes persistent then you need to write a script and make it auto execute at startup or you can make a .desktop file and make it run at every startup. I prefer .desktop approach.
Mac Keyboard Remap App Download
Step 3: Create “swap.desktop” file and put it into ~/.config/autostart with following contents in it:
Step 4: Now make it executable
This way the .desktop file will auto start on every boot and the keys are swapped.
Second Method: If the above method does not work then you can try this method but please be aware that this method modifies the system file so do not mess with the system file and do it carefully.
Step 1: First we will create a backup of the file in case anything goes wrong so that we can restore it later.
Step 2: Edit the following file where ‘xkb’ stores the mapping of special keys:
Step 3: Find the lines of the keys which are to be remapped:
Remap Apple Keyboard For Windows
Step 4: Remap the key behaviour by changing its action:
Step 5: Press ‘Ctrl+O’ to save and press enter then press ‘Ctrl+X’ to exit the nano editor.
Step 6: Clear the ‘xkb’ cache with following command:
Mac Keyboard Remap App Windows 10
Step 7: Finally quit the session and re-login.
Now you have successfully changed your keymap. If you get any unexpected result with this method then restore the backup we created earlier with following command and repeat Step 6 and 7.
Remap Windows Shortcuts To Mac
If you faced any trouble modifying your keymap or need any assistance comment below and I’ll help you to solve your problem. If you find it useful and think it will help others as well you can share the article on your favorite social media.