{"id":181,"date":"2008-01-01T20:36:51","date_gmt":"2008-01-01T20:36:51","guid":{"rendered":"http:\/\/tlindner.macmess.org\/?p=181"},"modified":"2008-01-01T20:37:31","modified_gmt":"2008-01-01T20:37:31","slug":"sdlmess-and-the-new-apple-keyboard","status":"publish","type":"post","link":"https:\/\/tlindner.macmess.org\/?p=181","title":{"rendered":"SDLMESS and the New Apple Keyboard"},"content":{"rendered":"<p>SDLMESS inherited it&#8217;s keyboard handling code from mainline MESS. Mainline MESS uses the <em>Scroll Lock<\/em> key to toggle between User Interface modes. On the Mac, SDLMESS has a conditional compile to use the <em>Insert<\/em> key instead of the other key. This worked well before the new Apple keyboard.<\/p>\n<p>The new Apple keyboard has removed the <em>Insert<\/em> key and replaced it with an <em>fn<\/em> key. A press on this key is never sent to the operating system. It changes a mode internal to the keyboard. This is good and bad for SDLMESS on the Macintosh.<\/p>\n<p>Thankfully SDLMESS has no hardwired keys in the software. All keys can be reassigned in the tab menu. But the one catch-22 situation is the User Interface Mode toggle key. If this key is inaccessible, you are stuck with no access to the tab menu. About a year ago I saw this situation with some Macintosh laptop computers and submitted a patch to assign the keyboard mode key on the command line or inside the INI file. The switch is <em>uimodekey<\/em>. Since I have the new keyboard I changed it to ITEM_ID_DEL. This is the key directly below the <em>fn<\/em> key. This is a good way to solve the problem.<\/p>\n<p>There is also a benefit to the new Apple keyboard. Apple has been assigning many different functions to the function keys (F1-F12) over the past few years and SDLMESS also assigns functions to the functions keys. Since Mac OS X would take precedence, SDLMESS would never receive the keydowns and it would look like SDLMESS was malfunctioning. If you hold the <em>fn<\/em> key and then press a function key, SDLMESS will receive the keydown and the system will ignore the key. You can even reverse this in the system preferences.<\/p>","protected":false},"excerpt":{"rendered":"<p>SDLMESS inherited it&#8217;s keyboard handling code from mainline MESS. Mainline MESS uses the Scroll Lock key to toggle between User Interface modes. On the Mac, SDLMESS has a conditional compile to use the Insert key instead of the other key. &hellip; <a href=\"https:\/\/tlindner.macmess.org\/?p=181\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-181","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/tlindner.macmess.org\/index.php?rest_route=\/wp\/v2\/posts\/181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tlindner.macmess.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tlindner.macmess.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tlindner.macmess.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tlindner.macmess.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=181"}],"version-history":[{"count":0,"href":"https:\/\/tlindner.macmess.org\/index.php?rest_route=\/wp\/v2\/posts\/181\/revisions"}],"wp:attachment":[{"href":"https:\/\/tlindner.macmess.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tlindner.macmess.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tlindner.macmess.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}