{"id":1716,"date":"2014-12-17T14:01:25","date_gmt":"2014-12-17T03:01:25","guid":{"rendered":"http:\/\/www.malcolmgroves.com\/blog\/?p=1716"},"modified":"2014-12-23T09:16:27","modified_gmt":"2014-12-22T22:16:27","slug":"rad-studioappmethod-keystrokes-and-unity-view-in-vmware-fusion","status":"publish","type":"post","link":"http:\/\/www.malcolmgroves.com\/blog\/?p=1716","title":{"rendered":"RAD Studio\/AppMethod keystrokes vs VMWare Fusion Unity View"},"content":{"rendered":"<p>I had a question from a new AppMethod user recently about dealing with keystroke clashes between the IDE and OSX.<\/p>\n<p>F12, for example, in the <a href=\"http:\/\/docwiki.embarcadero.com\/RADStudio\/en\/Key_Mappings\">default\u00a0IDE key mappings<\/a>\u00a0toggles between the code editor and the form designer, while F12 in OSX shows the Dashboard. F11 is another problem, clashing with the OSX Show Desktop command.<!--more--><\/p>\n<p>If you are running Fusion in either Single Window View or Full Screen View, this is pretty easily fixed. Go into Virtual Machine | Settings | Keyboard and Mouse, add a new profile (I called mine RAD Studio Profile) then Edit it. On the Mac Host Shortcuts tab, uncheck the Enable Mac OS Host Keyboard Shortcuts checkbox and you&#8217;re good to go.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1718\" src=\"http:\/\/www.malcolmgroves.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-04-at-15.12.19.png\" alt=\"Editing the Mouse and Keyboard profile under VMWare Fusion\" width=\"400\" height=\"414\" srcset=\"http:\/\/www.malcolmgroves.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-04-at-15.12.19.png 400w, http:\/\/www.malcolmgroves.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-04-at-15.12.19-289x300.png 289w, http:\/\/www.malcolmgroves.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-04-at-15.12.19-144x150.png 144w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>I did this as a profile as I have lots of VMs containing RAD Studio and AppMethod. Older versions, betas of the next version, etc. For each of these I can simply select the RAD Studio profile and I&#8217;m good to go.<\/p>\n<p>However, <a href=\"http:\/\/www.vmware.com\/au\/products\/fusion\/features\" target=\"_blank\">Unity View<\/a>\u00a0is a problem. If you&#8217;re not aware, Unity View\u00a0makes any application you are running in the VM appear as a standalone application in OSX.\u00a0It basically hides the rest of Windows from you, and just shows your Windows apps as if they were OSX apps.<\/p>\n<p>This makes for a much more pleasant experience in most cases, but unfortunately the trick above won&#8217;t work. The OSX Keyboard Shortcuts always apply under Unity View.<\/p>\n<p>You could of course change your IDE Key Mappings, but I&#8217;d have too many years of muscle memory to relearn if I did that.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1719\" src=\"http:\/\/www.malcolmgroves.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-04-at-15.14.20.png\" alt=\"Editing the OSX keyboard shortcuts\" width=\"400\" height=\"358\" srcset=\"http:\/\/www.malcolmgroves.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-04-at-15.14.20.png 400w, http:\/\/www.malcolmgroves.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-04-at-15.14.20-300x268.png 300w, http:\/\/www.malcolmgroves.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-04-at-15.14.20-150x134.png 150w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/p>\n<p>The option I went for in the end was to change the OSX Keyboard Shortcuts. If you go into System Preferences | Keyboard | Shortcuts, then select Mission Control, you&#8217;ll see the two shortcuts in question a few lines down. Select one, then click on the actual keystroke (eg. F11 on the right hand side) and it should become editable. I didn&#8217;t want to change it dramatically, so I changed it from F11 to \u2318F11 (and the same with F12).<\/p>\n<p>Of course, if you don&#8217;t use that keyboard shortcut in OSX, you can just turn them off by unchecking the checkbox next to the name.<\/p>\n<p><strong>Update<\/strong>: Also note the comment down the bottom of the page about using the Fn key to change OSX&#8217;s use of F1-12.<\/p>\n<p>Lastly, be aware that some of the commands listed as being Ctrl-something, like say Ctrl-Up Arrow, also respond to the Ctrl-Shift-Up Arrow combination (but in a weird, slow motion kind of way). So things like Mission Control and Application Windows will also need to be edited, even though they don&#8217;t look like it.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/www.malcolmgroves.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-04-at-15.51.29-2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-1720\" src=\"http:\/\/www.malcolmgroves.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-04-at-15.51.29-2-300x187.jpg\" alt=\"IDE Running in Unity View in Fusion on OSX\" width=\"400\" height=\"250\" srcset=\"http:\/\/www.malcolmgroves.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-04-at-15.51.29-2-300x187.jpg 300w, http:\/\/www.malcolmgroves.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-04-at-15.51.29-2-535x334.jpg 535w, http:\/\/www.malcolmgroves.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-04-at-15.51.29-2-150x93.jpg 150w, http:\/\/www.malcolmgroves.com\/blog\/wp-content\/uploads\/2014\/12\/Screen-Shot-2014-12-04-at-15.51.29-2.jpg 800w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>It can take a little while until you catch all your frequently used <a href=\"http:\/\/docwiki.embarcadero.com\/RADStudio\/XE7\/en\/Default_Keyboard_Shortcuts\" target=\"_blank\">IDE keystrokes<\/a> that clash. Here&#8217;s a list\u00a0of the ones I&#8217;ve struck so far. If you come across others, let me know and I&#8217;ll update it.<\/p>\n<ul>\n<li>F11 &#8211; clashes with Show Desktop<\/li>\n<li>F12 &#8211; clashes with ShowDashboard<\/li>\n<li>Ctrl-Shift-Space &#8211; clashes with\u00a0Show\\Hide Trackpad Handwriting<\/li>\n<li>Ctrl-Up Arrow &#8211; clashes with Mission Control<\/li>\n<li>Ctrl-Down Arrow &#8211; clashes with Show Desktop<\/li>\n<li>Ctrl-Left and Right Arrows &#8211; clashes with\u00a0Move Left\/Right a Space<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had a question from a new AppMethod user recently about dealing with keystroke clashes between the IDE and OSX. F12, for example, in the default\u00a0IDE key mappings\u00a0toggles between the code editor and the form designer, while F12 in OSX shows the Dashboard. F11 is another problem, clashing with the OSX Show Desktop command.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[104,77],"tags":[110],"class_list":["post-1716","post","type-post","status-publish","format-standard","hentry","category-ide","category-os-x","tag-vmware"],"_links":{"self":[{"href":"http:\/\/www.malcolmgroves.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1716","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.malcolmgroves.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.malcolmgroves.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.malcolmgroves.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.malcolmgroves.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1716"}],"version-history":[{"count":10,"href":"http:\/\/www.malcolmgroves.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1716\/revisions"}],"predecessor-version":[{"id":1749,"href":"http:\/\/www.malcolmgroves.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1716\/revisions\/1749"}],"wp:attachment":[{"href":"http:\/\/www.malcolmgroves.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1716"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.malcolmgroves.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1716"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.malcolmgroves.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}