45

Apple's Technical Note TN2450 describes how to remap keys. Running the following command will remap Right Alt to be Right Control. hidutil property --set '{"UserKeyMapping": [{"HIDKeyboardModifierMappingSrc":0x7000000e6, "HIDKeyboardModifierMappingDst":0x7000000e4}] }' Note that the above command is not switching the Right Alt and Right ...


16

A more general and user-friendly approach is to use Karabiner-Elements, which is a version of Karabiner that works on Sierra.


13

I fixed the issue! Turns out that on this keyboard, doing fn + f12 actually disables the windows key. This was turned on by default. This is why nothing was working when I would press the windows key. I pressed fn + f12 again and now everything works :| weeks of frustration all due to me not looking at my keyboard layout :(


11

Karabiner (Formerly called KeyRemap4MacBook) allows to intercept the keyplay. Assign your scripts for fine volume adjustment to F11 and F12 (actually it's a combination of fn+vol. up/vol. down). Download and install Karabiner. Open the Karabiner preferences via the menu icon, which is a black square (like a keyboard key), somewhere in your menu bar. In the ...


11

This is an addendum to Steven C. Howell's answer. I have a new MacBook Pro with a Scandinavian keyboard. This new model no longer has an Esc key, which is a significant handicap for me. I discovered that the following will translate the § key (upper left, left of 1 and above tab key) - which I don't think I have ever used for anything before today - to ...


8

You can change the functions of the modifier keys (Caps Lock, Control, Option, Command) in System Preferences -> Keyboard -> Modifier Keys. If you have more than one keyboard, the setting window allows you to select and set separate mapping for each one:


7

KeyRemap4MacBook also supports device-specific settings: <?xml version="1.0"?> <root> <devicevendordef> <vendorname>KINESIS</vendorname> <vendorid>0x05f3</vendorid> </devicevendordef> <deviceproductdef> <productname>ADVANTAGE</productname> <productid>0x0007</...


7

If you only want to disable key-mapping for the internal keyboard for Apple keyboards, the GUI offers a simpler way that doesn't involve reimporting your profile and editing private.xml:


7

If all you want to do is remap a single key Example: How to Remap Escape Key on Mac Go to the  Apple menu and choose “System Preferences” and then go to the “Keyboard” preference panel and choose the “Keyboard” tab Click on the “Modifier Keys” button in the lower right corner Choose the key you want to remap and modify to perform the Escape function: ...


6

Sadly, with MacOS Sierra, Karabiner has gone into a strange kind of hiatus-but-not-really-because-someday-we'll-fix-it. Which is too bad, because Karabiner was the perfect tool for what I needed (which was make MacOS behave like a forty-year-old UNIX terminal because my stupid fingers still hit ^W to delete a word and I kill the window and I can't stop, no, ...


5

You can use a tool like USB Overdrive to map various functions to the buttons on your generic 6-button mouse.


5

Use Seil to map caps lock to some key like F19. Then install Karabiner and save a file like this as ~/Library/Application Support/Karabiner/private.xml: <?xml version="1.0"?> <root> <item> <name>custom</name> <identifier>custom</identifier> <autogen>__KeyToKey__ KeyCode::F19, ModifierFlag::NONE, ...


5

Ah found the solution. Currently the best option, by FAR is: Karabiner-Elements Hope somebody else finds this useful as well.


4

Another great way to fully customise Function keys (or any keys) is KeyRemap4Macbook You can customise individual or key type behaviour either per application or system wide. It's also free.


4

@iGameRam's suggestion of KeyRemap4MacBook ended up working for me. I selected KeyRemap4MacBook because I am already using it to remap keys for me system wide. To do this I had to read the reference manual. From the reference manual I found that there is a private.xml file that enables me to add more remapping values to KeyRemap4MacBook. By going to the ...


4

The problem is that you are setting up a recursive key binding. Seil changes caps lock -> esc Karabiner changes esc -> caps lock So in the end when you hit caps lock or esc you will still get caps lock. caps lock -> esc -> caps lock When using Seil and Karbiner together you must follow the Input Even Modification Chain to determine the key ...


4

OS X does not understand 'Num lock'. There's no on-off state for Num lock in OS X and as such can be thought to be always on. The Num lock button itself on a Windows keyboard is interpreted as Clear in OS X. You are able to bind this to actions in Keyboard Maestro, but a 'state switch' would essentially require saving a variable in Keyboard Maestro to be ...


4

Your sample appeared to be slightly different than other rules I've looked at. Here's a version that works for me: file: map_lctl_plus_open_bracket_to_close_bracket.json : { "title": "Map Lft-Ctl+Open-Bracket to Close-Bracket", "rules": [ { "manipulators": [ { "description": "bracket rule", "type": "basic", ...


3

What mouse? Apple's Mighty Mouse is configurable as a one-button mouse. For other mice, look at the USB Overdrive mouse driver. It's an amazingly configurable driver for mice, trackpads, joy sticks, game controllers, and other HIDs. I used it with a Kensington multi-button trackball before I had the OEM driver for it. I'd be surprised if you couldn't ...


3

Now you do not need any additional software. In System -> Keyboard -> Modifier keys you can remap separately each keyboard.


3

It's still shown for me. Have you tried changing the keyboard type or running defaults write -g com.apple.keyboard.fnState -bool true and logging out and back in?


3

yeah the button above or below the scroll is the adjustment of DPI of the mouse. mine is 4 types. if you click the 6th button then play on your cursor on the screen each click (6th button)you will notice the ranges how far can your cursor travel from left to right or up/down.


3

You can do this with Karabiner with a private.xml such as this: <?xml version="1.0"?> <root> <item> <name>Forward Delete with ⌃⌫</name> <identifier>private.ctrlbackspace</identifier> <autogen> __KeyToKey__ KeyCode::DELETE, VK_CONTROL | ModifierFlag::NONE, KeyCode::FORWARD_DELETE ...


3

I had a similar issue and made my complex_modifications for Karabiner Elements available in a pull request here: https://github.com/pqrs-org/KE-complex_modifications/pull/509


3

This isn't reproducible, it seems to work just fine.


3

You could use Keyboard Maestro together with a custom macro.


2

Use Ukelele to create a new keyboard layout that maps the enter key to return. Open Ukelele and select File » New From Current Input Source. Select Keyboard » Edit Key… and confirm to press the key. Then, press enter. You will be asked what character to replace it with. Enter &#x000d; and confirm. Optionally assign a new name to your keyboard using ...


2

You've got your assumption a tiny bit mixed up. It's not that some software remaps the enter into return, it's that some software treats an enter as a carriage return and some doesn't. They are two different keys with two differnet histories. One is enter and one is carriage return and they perform different functions. I hate referencing wikipedia but hell,...


2

You can use BetterTouchTool for this. It is a paid app (at least 4,45€) but it's totally worth the price! Select in the keyboard preferences, that by default you want to use F keys. Disable "F > 6" shortcuts: Set new global keyboard shortcuts in BetterTouchTool: Done!


2

FYI, it doesn't seem to be mentioned in the Mac shortcuts list, but on my Macbook Air you can press Ctrl+option+f and Ctrl+option+b to move forward and backward one word, respectively.


Only top voted, non community-wiki answers of a minimum length are eligible