{"id":1136,"date":"2012-02-19T04:00:37","date_gmt":"2012-02-19T09:00:37","guid":{"rendered":"http:\/\/www.dannyadam.com\/blog\/?p=1136"},"modified":"2018-09-13T15:11:33","modified_gmt":"2018-09-13T20:11:33","slug":"changing-mac-key-bindings","status":"publish","type":"post","link":"https:\/\/www.dannyadam.com\/blog\/2012\/02\/changing-mac-key-bindings\/","title":{"rendered":"Changing Mac Key Bindings"},"content":{"rendered":"<p>This post explains the steps I took to make my Mac keyboard work more like a PC keyboard. The goal here is not necessarily for keys with the same names to be in the same position (e.g., the <em>Ctrl<\/em> key), but rather to have the same functionality across platforms when pressing keys located in the same positions.<\/p>\n<p>Until last summer, I mainly used Windows and various distributions of Linux. Last summer I got my first laptop, a MacBook Air. I still use Windows on my desktop computer, and I have <a href=\"http:\/\/en.wikipedia.org\/wiki\/Xubuntu\">Xubuntu<\/a>\u00a0installed on <a href=\"http:\/\/en.wikipedia.org\/wiki\/Virtualbox\">VirtualBox<\/a>\u00a0virtual machines on both my desktop and laptop.<\/p>\n<p>Both Windows and Linux (i.e., the distributions that I have used) have similar key bindings. For example, <em>Ctrl-C<\/em> is used for copying on Windows and it is also used for copying on every <a href=\"http:\/\/en.wikipedia.org\/wiki\/Desktop_environments\">desktop environment<\/a> I have used on Linux. When I started using OS X, I quickly realized that it uses a different set of key bindings. For example, the key binding for copying is <em>Command-C<\/em>, and the <em>Command<\/em> key on a Mac keyboard is located in a different position than the <em>Ctrl<\/em> key is on a PC keyboard.<\/p>\n<p><!--more-->I decided right away to modify the Mac key bindings so they would be more like the bindings that I was familiar with. If I was committed to\u00a0completely\u00a0switching platforms, I would have given more consideration to learning a new set of key bindings. However, since I was still planning on using multiple platforms, I wanted to make switching back and forth as seamless as possible.<\/p>\n<p>Here are the steps for configuring the Mac&#8217;s keyboard to work like a PC keyboard.<\/p>\n<p><strong>Step 1. Configure Modifier Keys<\/strong><\/p>\n<p>The first step is changing the <em>Modifier Keys&#8230;<\/em> settings in the keyboard settings in system preferences. The settings are shown below.<\/p>\n<p><a href=\"https:\/\/www.dannyadam.com\/blog\/wp-content\/uploads\/2012\/02\/Keyboard-Settings.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1138\" title=\"Keyboard Settings\" src=\"https:\/\/www.dannyadam.com\/blog\/wp-content\/uploads\/2012\/02\/Keyboard-Settings-300x273.png\" alt=\"\" width=\"300\" height=\"273\" srcset=\"https:\/\/www.dannyadam.com\/blog\/wp-content\/uploads\/2012\/02\/Keyboard-Settings-300x273.png 300w, https:\/\/www.dannyadam.com\/blog\/wp-content\/uploads\/2012\/02\/Keyboard-Settings.png 782w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>Step 2. Create\u00a0<em>DefaultKeyBinding.dict<\/em><\/strong><\/p>\n<p>The next step is to create a\u00a0<em>DefaultKeyBinding.dict<\/em> file to add additional settings that make the bindings more similar to a PC (e.g.,\u00a0<em>Ctrl-Left<\/em>\u00a0to move the cursor one word left, which will now be\u00a0<em>Command-Left<\/em>\u00a0on the Mac since the <em>Command<\/em> key is now\u2014after Step 1\u2014located where <em>Ctrl<\/em> is on a PC keyboard).<\/p>\n<p>I used <a href=\"http:\/\/www.cocoabits.com\/KeyBindingsEditor\/\">KeyBindingsEditor<\/a>\u00a0to create the following\u00a0<em>DefaultKeyBinding.dict<\/em>\u00a0file:\u00a0<a href=\"https:\/\/www.dannyadam.com\/blog\/wp-content\/uploads\/2012\/02\/DefaultKeyBinding.dict\">DefaultKeyBinding.dict<\/a><\/p>\n<p>The file should be saved to\u00a0<em>~\/Library\/KeyBindings\/<\/em>, where ~ denotes your home directory. If you can&#8217;t see the <em>Library<\/em> directory in Finder, then click <em>Go<\/em> &#8211;&gt; <em>Go to Folder&#8230;<\/em>, and enter\u00a0<em>~\/Library<\/em>.<\/p>\n<p><a href=\"https:\/\/www.dannyadam.com\/blog\/wp-content\/uploads\/2012\/02\/library.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1168\" title=\"library\" src=\"https:\/\/www.dannyadam.com\/blog\/wp-content\/uploads\/2012\/02\/library-300x183.png\" alt=\"\" width=\"300\" height=\"183\" srcset=\"https:\/\/www.dannyadam.com\/blog\/wp-content\/uploads\/2012\/02\/library-300x183.png 300w, https:\/\/www.dannyadam.com\/blog\/wp-content\/uploads\/2012\/02\/library.png 877w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>The idea for editing <em>DefaultKeyBinding.dict\u00a0<\/em>was from\u00a0<a href=\"http:\/\/heisencoder.net\/2008\/04\/fixing-up-mac-key-bindings-for-windows.html\">Fixing up the Mac Key Bindings for Windows Users<\/a>.<\/p>\n<p><strong>Step 3 (optional). Print Keyboard Stickers<\/strong><\/p>\n<p>The last step is making the keys on your keyboard reflect the changed settings. To do this, I followed the directions on <a href=\"http:\/\/www.ehow.com\/how_5273387_make-custom-keyboard-stickers.html\">How to Make Custom Keyboard Stickers<\/a>. The image below shows the stickers on my MacBook Air keyboard.<\/p>\n<p><a href=\"https:\/\/www.dannyadam.com\/blog\/wp-content\/uploads\/2012\/02\/Keyboard.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1143\" title=\"Keyboard\" src=\"https:\/\/www.dannyadam.com\/blog\/wp-content\/uploads\/2012\/02\/Keyboard-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/www.dannyadam.com\/blog\/wp-content\/uploads\/2012\/02\/Keyboard-300x225.jpg 300w, https:\/\/www.dannyadam.com\/blog\/wp-content\/uploads\/2012\/02\/Keyboard.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Here is the PNG file with the labels: <a href=\"https:\/\/www.dannyadam.com\/blog\/wp-content\/uploads\/2012\/02\/keyboard.png\">keyboard.png<br \/>\n<\/a>Here is the Photoshop file:\u00a0<a href=\"https:\/\/www.dannyadam.com\/blog\/wp-content\/uploads\/2012\/02\/keyboard.psd\">keyboard.psd<\/a><\/p>\n<p>In addition to the three stickers shown, I also put a <em>ctrl<\/em>\u00a0sticker over the <em>option<\/em> key on the right side of the keyboard. I did not cover the <em>command<\/em>\u00a0key on the right side of the keyboard, since that key&#8217;s functionality was not modified.<\/p>\n<p>First, print the stickers on a <a href=\"http:\/\/www.texascraft.com\/hps\/product.php?productid=17771\">vinyl adhesive sheet<\/a>. The preceding link indicates that the product is for an inkjet. However, I had better\u00a0results\u00a0using a laser printer. Next, cover the sheet with a <a href=\"http:\/\/www.texascraft.com\/hps\/product.php?productid=17547\">laminate sticker<\/a>. Lastly, cut out the key labels, peel off the back layer of the sticker, and stick the labels on your keyboard. The image I attached with key labels shows the sharp corners on the labels I created. If I did this again, I&#8217;d probably cut the corners to be rounded.<\/p>\n<p>An alternative to printing your own custom keyboard labels is to order custom labels from a site such as <a href=\"http:\/\/www.datacal.com\/t-customlabels.aspx\">DataCal<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post explains the steps I took to make my Mac keyboard work more like a PC keyboard. The goal here is not necessarily for keys with the same names to be in the same position (e.g., the Ctrl key), but rather to have the same functionality across platforms when pressing keys located in the [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[22],"class_list":["post-1136","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-os-x"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1sCC6-ik","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/posts\/1136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/comments?post=1136"}],"version-history":[{"count":72,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/posts\/1136\/revisions"}],"predecessor-version":[{"id":25524,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/posts\/1136\/revisions\/25524"}],"wp:attachment":[{"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/media?parent=1136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/categories?post=1136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dannyadam.com\/blog\/wp-json\/wp\/v2\/tags?post=1136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}