{"id":2186,"date":"2020-09-13T17:10:42","date_gmt":"2020-09-13T21:10:42","guid":{"rendered":"http:\/\/michaelrowe01.com\/?p=2186"},"modified":"2022-12-15T06:46:04","modified_gmt":"2022-12-15T11:46:04","slug":"adding-menus-and-keyboard-shortcuts","status":"publish","type":"post","link":"https:\/\/michaelrowe01.com\/index.php\/blog\/adding-menus-and-keyboard-shortcuts\/","title":{"rendered":"Adding Menus and Keyboard Shortcuts"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">As I continue to work on Wasted Time, I now have added working keyboard shortcuts, and menu items to both the iPad and macOS versions.  I can&#8217;t wait for Big Sur and iPadOS 14 to come up so I can release these to the world.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First a few screenshots<\/p>\n\n\n\n<figure class=\"wp-block-gallery columns-3 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"660\" height=\"523\" data-attachment-id=\"2187\" data-permalink=\"https:\/\/michaelrowe01.com\/index.php\/blog\/adding-menus-and-keyboard-shortcuts\/attachment\/screen-shot-2020-09-13-at-17-00-18\/\" data-orig-file=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-13-at-17.00.18.png?fit=839%2C665&amp;ssl=1\" data-orig-size=\"839,665\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screen-Shot-2020-09-13-at-17.00.18\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-13-at-17.00.18.png?fit=660%2C523&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-13-at-17.00.18.png?resize=660%2C523&#038;ssl=1\" alt=\"\" data-id=\"2187\" data-full-url=\"https:\/\/michaelrowe01.com\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-13-at-17.00.18.png\" data-link=\"https:\/\/michaelrowe01.com\/?attachment_id=2187\" class=\"wp-image-2187\" srcset=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-13-at-17.00.18.png?w=839&amp;ssl=1 839w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-13-at-17.00.18.png?resize=300%2C238&amp;ssl=1 300w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-13-at-17.00.18.png?resize=768%2C609&amp;ssl=1 768w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"660\" height=\"533\" data-attachment-id=\"2188\" data-permalink=\"https:\/\/michaelrowe01.com\/index.php\/blog\/adding-menus-and-keyboard-shortcuts\/attachment\/screen-shot-2020-09-13-at-17-00-24\/\" data-orig-file=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-13-at-17.00.24.png?fit=1654%2C1336&amp;ssl=1\" data-orig-size=\"1654,1336\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screen-Shot-2020-09-13-at-17.00.24\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-13-at-17.00.24.png?fit=660%2C533&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-13-at-17.00.24.png?resize=660%2C533&#038;ssl=1\" alt=\"\" data-id=\"2188\" data-full-url=\"https:\/\/michaelrowe01.com\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-13-at-17.00.24.png\" data-link=\"https:\/\/michaelrowe01.com\/?attachment_id=2188\" class=\"wp-image-2188\" srcset=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-13-at-17.00.24.png?resize=1024%2C827&amp;ssl=1 1024w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-13-at-17.00.24.png?resize=300%2C242&amp;ssl=1 300w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-13-at-17.00.24.png?resize=768%2C620&amp;ssl=1 768w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-13-at-17.00.24.png?resize=1536%2C1241&amp;ssl=1 1536w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-13-at-17.00.24.png?w=1654&amp;ssl=1 1654w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-13-at-17.00.24.png?w=1320&amp;ssl=1 1320w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"660\" height=\"461\" data-attachment-id=\"2189\" data-permalink=\"https:\/\/michaelrowe01.com\/index.php\/blog\/adding-menus-and-keyboard-shortcuts\/attachment\/simulator-screen-shot-ipad-pro-11-inch-2nd-generation-2020-09-13-at-16-56-43\/\" data-orig-file=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2020\/09\/Simulator-Screen-Shot-iPad-Pro-11-inch-2nd-generation-2020-09-13-at-16.56.43.png?fit=2388%2C1668&amp;ssl=1\" data-orig-size=\"2388,1668\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Simulator-Screen-Shot-iPad-Pro-11-inch-2nd-generation-2020-09-13-at-16.56.43\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2020\/09\/Simulator-Screen-Shot-iPad-Pro-11-inch-2nd-generation-2020-09-13-at-16.56.43.png?fit=660%2C461&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2020\/09\/Simulator-Screen-Shot-iPad-Pro-11-inch-2nd-generation-2020-09-13-at-16.56.43.png?resize=660%2C461&#038;ssl=1\" alt=\"\" data-id=\"2189\" data-full-url=\"https:\/\/michaelrowe01.com\/wp-content\/uploads\/2020\/09\/Simulator-Screen-Shot-iPad-Pro-11-inch-2nd-generation-2020-09-13-at-16.56.43.png\" data-link=\"https:\/\/michaelrowe01.com\/?attachment_id=2189\" class=\"wp-image-2189\" srcset=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2020\/09\/Simulator-Screen-Shot-iPad-Pro-11-inch-2nd-generation-2020-09-13-at-16.56.43.png?resize=1024%2C715&amp;ssl=1 1024w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2020\/09\/Simulator-Screen-Shot-iPad-Pro-11-inch-2nd-generation-2020-09-13-at-16.56.43.png?resize=300%2C210&amp;ssl=1 300w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2020\/09\/Simulator-Screen-Shot-iPad-Pro-11-inch-2nd-generation-2020-09-13-at-16.56.43.png?resize=768%2C536&amp;ssl=1 768w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2020\/09\/Simulator-Screen-Shot-iPad-Pro-11-inch-2nd-generation-2020-09-13-at-16.56.43.png?resize=1536%2C1073&amp;ssl=1 1536w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2020\/09\/Simulator-Screen-Shot-iPad-Pro-11-inch-2nd-generation-2020-09-13-at-16.56.43.png?resize=2048%2C1431&amp;ssl=1 2048w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2020\/09\/Simulator-Screen-Shot-iPad-Pro-11-inch-2nd-generation-2020-09-13-at-16.56.43.png?w=1320&amp;ssl=1 1320w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2020\/09\/Simulator-Screen-Shot-iPad-Pro-11-inch-2nd-generation-2020-09-13-at-16.56.43.png?w=1980&amp;ssl=1 1980w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/figure><\/li><\/ul><figcaption class=\"blocks-gallery-caption\">Menus across iPadOS and macOS<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The code ended up not being to difficult, once I figured it out.  Of course, that is almost always the case.  Moving from all the programming habits I developed in college and the few years that I made my living as developer, to modern languages and architectures, has been hard.  While I fully understand the concepts, putting it in practice can be difficult. So let&#8217;s look at the code behind the Menu Builder function in Swift:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    override func buildMenu(with builder: UIMenuBuilder) {\n        super.buildMenu(with: builder)\n        \n        \/\/ Ensure that the builder is modifying the menu bar system.\n        guard builder.system == UIMenuSystem.main else { return }\n        \n        \/\/ Meeting Menu\n        let advanceMeetingStatus = UIKeyCommand(title: \"Advance Meeting Status\", action: #selector(handleKeyAdvanceMeetingStatus(sender:)), input: UIKeyCommand.inputRightArrow, modifierFlags: .alternate, propertyList: UIKeyCommand.inputRightArrow)\n        let incrementParticipants = UIKeyCommand(title: \"Increment Participants\", action: #selector(handleKeyIncrementParticipants(sender:)), input: UIKeyCommand.inputUpArrow, modifierFlags: .alternate, propertyList: UIKeyCommand.inputUpArrow)\n        let decrementParticipants = UIKeyCommand(title: \"Decrement Participants\", action: #selector(handleKeyDecrementParticipants(sender:)), input: UIKeyCommand.inputDownArrow, modifierFlags: .alternate, propertyList: UIKeyCommand.inputDownArrow)\n        let cancelMeeting = UIKeyCommand(title: \"End Meeting Immediately\", action: #selector(handleKeyCancelMeeting(sender:)), input: UIKeyCommand.inputLeftArrow, modifierFlags: .alternate, propertyList: UIKeyCommand.inputLeftArrow)\n       \n        let advanceMeetingItem = UIMenu(title: \"Advance Meeting\", image: nil, identifier: UIMenu.Identifier(\"advanceMeetingStatus\"), options: .displayInline, children: &#91;advanceMeetingStatus])\n        let incrementParticipantsItem = UIMenu(title: \"Add Participants\", image: nil, identifier: UIMenu.Identifier(\"incrementParticipants\"), options: .displayInline, children: &#91;incrementParticipants])\n        let decrementParticipantsItem = UIMenu(title: \"Remove Participants\", image: nil, identifier: UIMenu.Identifier(\"decrementParticipants\"), options: .displayInline, children: &#91;decrementParticipants])\n        let cancelMeetingItem = UIMenu(title: \"Cancel Meeting\", image: nil, identifier: UIMenu.Identifier(\"cancelMeeting\"), options: .displayInline, children: &#91;cancelMeeting])\n        \n        \n        let meetingMenu = UIMenu(title: \"Meeting\", children: &#91;advanceMeetingItem,incrementParticipantsItem,decrementParticipantsItem,cancelMeetingItem])\n       \n        \/\/ View Menu\n        let meetingView = UIKeyCommand(title: \"Meeting View\", action: #selector(handleKeyCommand1(sender:)), input: \"1\", modifierFlags: .command, propertyList: 1)\n        let setupView = UIKeyCommand(title: \"Setup View\", action: #selector(handleKeyCommand2(sender:)), input: \"2\", modifierFlags: .command, propertyList: 2)\n        let totalsView = UIKeyCommand(title: \"Totals View\", action: #selector(handleKeyCommand3(sender:)), input: \"3\", modifierFlags: .command, propertyList: 3)\n        let helpView = UIKeyCommand(title: \"Help View\", action: #selector(handleKeyCommand4(sender:)), input: \"4\", modifierFlags: .command, propertyList: 4)\n        \n        let meetingViewItem = UIMenu(title: \"Meeting View\", image: nil, identifier: UIMenu.Identifier(\"meetingView\"), options: .displayInline, children: &#91;meetingView])\n        let setupViewItem = UIMenu(title: \"Setup View\", image: nil, identifier: UIMenu.Identifier(\"setupView\"), options: .displayInline, children: &#91;setupView])\n        let totalsViewItem = UIMenu(title: \"Totals View\", image: nil, identifier: UIMenu.Identifier(\"totalsView\"), options: .displayInline, children: &#91;totalsView])\n        let helpViewItem = UIMenu(title: \"Help View\", image: nil, identifier: UIMenu.Identifier(\"helpView\"), options: .displayInline, children: &#91;helpView])\n        \n        let tabsMenu = UIMenu(title: \"Tabs\", children: &#91;meetingViewItem, setupViewItem, totalsViewItem, helpViewItem])\n        \n        builder.insertSibling(meetingMenu, afterMenu: .edit)\n        builder.insertSibling(tabsMenu, afterMenu: .edit)\n        builder.remove(menu: .file)\n        builder.remove(menu: .edit)\n        builder.remove(menu: .format)\n        builder.remove(menu: .help)\n        \n    }<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The net of this code is to build up the actions, then the items, and then attach the items to a new UIMenu object. I add the various items ad children to the UIMenu, and then insert the UIMenu after the file menu.  Since I don&#8217;t use the file menu, I then remove it, along with edit, format and help.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Not too hard.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As I continue to work on Wasted Time, I now have added working keyboard shortcuts, and menu items to both the iPad and macOS versions. I can&#8217;t wait for Big Sur and iPadOS 14 to come up so I can release these to the world. First a few screenshots The code ended up not being [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_wp_convertkit_post_meta":{"form":"-1","landing_page":"0","tag":"0","restrict_content":"0"},"hide_page_title":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[2,3],"tags":[548,561,257,566,427],"class_list":["post-2186","post","type-post","status-publish","format-standard","hentry","category-blog","category-personal-softwareandit","tag-big-sur","tag-ipados14","tag-macos","tag-menus","tag-wastedtime"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Michael Rowe\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/michaelrowe01.com\/index.php\/blog\/adding-menus-and-keyboard-shortcuts\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Random Thoughts | A blog about things that interest me.\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Adding Menus and Keyboard Shortcuts | Random Thoughts\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/michaelrowe01.com\/index.php\/blog\/adding-menus-and-keyboard-shortcuts\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/michaelrowe01.com\/wp-content\/uploads\/2019\/04\/img_0391.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/michaelrowe01.com\/wp-content\/uploads\/2019\/04\/img_0391.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"3088\" \/>\n\t\t<meta property=\"og:image:height\" content=\"2316\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-09-13T21:10:42+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-12-15T11:46:04+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Adding Menus and Keyboard Shortcuts | Random Thoughts\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/michaelrowe01.com\/wp-content\/uploads\/2019\/04\/img_0391.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/michaelrowe01.com\\\/index.php\\\/blog\\\/adding-menus-and-keyboard-shortcuts\\\/#article\",\"name\":\"Adding Menus and Keyboard Shortcuts | Random Thoughts\",\"headline\":\"Adding Menus and Keyboard Shortcuts\",\"author\":{\"@id\":\"https:\\\/\\\/michaelrowe01.com\\\/index.php\\\/author\\\/michaelrowe\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/michaelrowe01.com\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/michaelrowe01.com\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/Screen-Shot-2020-09-13-at-17.00.18.png?fit=839%2C665&ssl=1\",\"@id\":\"https:\\\/\\\/michaelrowe01.com\\\/index.php\\\/blog\\\/adding-menus-and-keyboard-shortcuts\\\/#articleImage\",\"width\":839,\"height\":665},\"datePublished\":\"2020-09-13T17:10:42-04:00\",\"dateModified\":\"2022-12-15T06:46:04-05:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/michaelrowe01.com\\\/index.php\\\/blog\\\/adding-menus-and-keyboard-shortcuts\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/michaelrowe01.com\\\/index.php\\\/blog\\\/adding-menus-and-keyboard-shortcuts\\\/#webpage\"},\"articleSection\":\"blog, Personal - Software and IT, Big Sur, ipados14, macOS, menus, WastedTime\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/michaelrowe01.com\\\/index.php\\\/blog\\\/adding-menus-and-keyboard-shortcuts\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/michaelrowe01.com#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/michaelrowe01.com\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/michaelrowe01.com\\\/index.php\\\/category\\\/blog\\\/#listItem\",\"name\":\"blog\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/michaelrowe01.com\\\/index.php\\\/category\\\/blog\\\/#listItem\",\"position\":2,\"name\":\"blog\",\"item\":\"https:\\\/\\\/michaelrowe01.com\\\/index.php\\\/category\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/michaelrowe01.com\\\/index.php\\\/blog\\\/adding-menus-and-keyboard-shortcuts\\\/#listItem\",\"name\":\"Adding Menus and Keyboard Shortcuts\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/michaelrowe01.com#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/michaelrowe01.com\\\/index.php\\\/blog\\\/adding-menus-and-keyboard-shortcuts\\\/#listItem\",\"position\":3,\"name\":\"Adding Menus and Keyboard Shortcuts\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/michaelrowe01.com\\\/index.php\\\/category\\\/blog\\\/#listItem\",\"name\":\"blog\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/michaelrowe01.com\\\/#organization\",\"name\":\"Michael Rowe\",\"description\":\"A blog about things that interest me.\",\"url\":\"https:\\\/\\\/michaelrowe01.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/michaelrowe01.com\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/IMG_0120.jpeg?fit=1024%2C1024&ssl=1\",\"@id\":\"https:\\\/\\\/michaelrowe01.com\\\/index.php\\\/blog\\\/adding-menus-and-keyboard-shortcuts\\\/#organizationLogo\",\"width\":1024,\"height\":1024},\"image\":{\"@id\":\"https:\\\/\\\/michaelrowe01.com\\\/index.php\\\/blog\\\/adding-menus-and-keyboard-shortcuts\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/michaelrowe01.com\\\/index.php\\\/author\\\/michaelrowe\\\/#author\",\"url\":\"https:\\\/\\\/michaelrowe01.com\\\/index.php\\\/author\\\/michaelrowe\\\/\",\"name\":\"Michael Rowe\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/michaelrowe01.com\\\/index.php\\\/blog\\\/adding-menus-and-keyboard-shortcuts\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/23f6c08c7576fa07e47f582da2eb7619aeb556ceddf53a274fdb9069926e5bc1?s=96&r=g\",\"width\":96,\"height\":96,\"caption\":\"Michael Rowe\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/michaelrowe01.com\\\/index.php\\\/blog\\\/adding-menus-and-keyboard-shortcuts\\\/#webpage\",\"url\":\"https:\\\/\\\/michaelrowe01.com\\\/index.php\\\/blog\\\/adding-menus-and-keyboard-shortcuts\\\/\",\"name\":\"Adding Menus and Keyboard Shortcuts | Random Thoughts\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/michaelrowe01.com\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/michaelrowe01.com\\\/index.php\\\/blog\\\/adding-menus-and-keyboard-shortcuts\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/michaelrowe01.com\\\/index.php\\\/author\\\/michaelrowe\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/michaelrowe01.com\\\/index.php\\\/author\\\/michaelrowe\\\/#author\"},\"datePublished\":\"2020-09-13T17:10:42-04:00\",\"dateModified\":\"2022-12-15T06:46:04-05:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/michaelrowe01.com\\\/#website\",\"url\":\"https:\\\/\\\/michaelrowe01.com\\\/\",\"name\":\"Random Thoughts\",\"description\":\"A blog about things that interest me.\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/michaelrowe01.com\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Adding Menus and Keyboard Shortcuts | Random Thoughts","description":"","canonical_url":"https:\/\/michaelrowe01.com\/index.php\/blog\/adding-menus-and-keyboard-shortcuts\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/michaelrowe01.com\/index.php\/blog\/adding-menus-and-keyboard-shortcuts\/#article","name":"Adding Menus and Keyboard Shortcuts | Random Thoughts","headline":"Adding Menus and Keyboard Shortcuts","author":{"@id":"https:\/\/michaelrowe01.com\/index.php\/author\/michaelrowe\/#author"},"publisher":{"@id":"https:\/\/michaelrowe01.com\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-13-at-17.00.18.png?fit=839%2C665&ssl=1","@id":"https:\/\/michaelrowe01.com\/index.php\/blog\/adding-menus-and-keyboard-shortcuts\/#articleImage","width":839,"height":665},"datePublished":"2020-09-13T17:10:42-04:00","dateModified":"2022-12-15T06:46:04-05:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/michaelrowe01.com\/index.php\/blog\/adding-menus-and-keyboard-shortcuts\/#webpage"},"isPartOf":{"@id":"https:\/\/michaelrowe01.com\/index.php\/blog\/adding-menus-and-keyboard-shortcuts\/#webpage"},"articleSection":"blog, Personal - Software and IT, Big Sur, ipados14, macOS, menus, WastedTime"},{"@type":"BreadcrumbList","@id":"https:\/\/michaelrowe01.com\/index.php\/blog\/adding-menus-and-keyboard-shortcuts\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/michaelrowe01.com#listItem","position":1,"name":"Home","item":"https:\/\/michaelrowe01.com","nextItem":{"@type":"ListItem","@id":"https:\/\/michaelrowe01.com\/index.php\/category\/blog\/#listItem","name":"blog"}},{"@type":"ListItem","@id":"https:\/\/michaelrowe01.com\/index.php\/category\/blog\/#listItem","position":2,"name":"blog","item":"https:\/\/michaelrowe01.com\/index.php\/category\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/michaelrowe01.com\/index.php\/blog\/adding-menus-and-keyboard-shortcuts\/#listItem","name":"Adding Menus and Keyboard Shortcuts"},"previousItem":{"@type":"ListItem","@id":"https:\/\/michaelrowe01.com#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/michaelrowe01.com\/index.php\/blog\/adding-menus-and-keyboard-shortcuts\/#listItem","position":3,"name":"Adding Menus and Keyboard Shortcuts","previousItem":{"@type":"ListItem","@id":"https:\/\/michaelrowe01.com\/index.php\/category\/blog\/#listItem","name":"blog"}}]},{"@type":"Organization","@id":"https:\/\/michaelrowe01.com\/#organization","name":"Michael Rowe","description":"A blog about things that interest me.","url":"https:\/\/michaelrowe01.com\/","logo":{"@type":"ImageObject","url":"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2024\/11\/IMG_0120.jpeg?fit=1024%2C1024&ssl=1","@id":"https:\/\/michaelrowe01.com\/index.php\/blog\/adding-menus-and-keyboard-shortcuts\/#organizationLogo","width":1024,"height":1024},"image":{"@id":"https:\/\/michaelrowe01.com\/index.php\/blog\/adding-menus-and-keyboard-shortcuts\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/michaelrowe01.com\/index.php\/author\/michaelrowe\/#author","url":"https:\/\/michaelrowe01.com\/index.php\/author\/michaelrowe\/","name":"Michael Rowe","image":{"@type":"ImageObject","@id":"https:\/\/michaelrowe01.com\/index.php\/blog\/adding-menus-and-keyboard-shortcuts\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/23f6c08c7576fa07e47f582da2eb7619aeb556ceddf53a274fdb9069926e5bc1?s=96&r=g","width":96,"height":96,"caption":"Michael Rowe"}},{"@type":"WebPage","@id":"https:\/\/michaelrowe01.com\/index.php\/blog\/adding-menus-and-keyboard-shortcuts\/#webpage","url":"https:\/\/michaelrowe01.com\/index.php\/blog\/adding-menus-and-keyboard-shortcuts\/","name":"Adding Menus and Keyboard Shortcuts | Random Thoughts","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/michaelrowe01.com\/#website"},"breadcrumb":{"@id":"https:\/\/michaelrowe01.com\/index.php\/blog\/adding-menus-and-keyboard-shortcuts\/#breadcrumblist"},"author":{"@id":"https:\/\/michaelrowe01.com\/index.php\/author\/michaelrowe\/#author"},"creator":{"@id":"https:\/\/michaelrowe01.com\/index.php\/author\/michaelrowe\/#author"},"datePublished":"2020-09-13T17:10:42-04:00","dateModified":"2022-12-15T06:46:04-05:00"},{"@type":"WebSite","@id":"https:\/\/michaelrowe01.com\/#website","url":"https:\/\/michaelrowe01.com\/","name":"Random Thoughts","description":"A blog about things that interest me.","inLanguage":"en-US","publisher":{"@id":"https:\/\/michaelrowe01.com\/#organization"}}]},"og:locale":"en_US","og:site_name":"Random Thoughts | A blog about things that interest me.","og:type":"article","og:title":"Adding Menus and Keyboard Shortcuts | Random Thoughts","og:url":"https:\/\/michaelrowe01.com\/index.php\/blog\/adding-menus-and-keyboard-shortcuts\/","og:image":"https:\/\/michaelrowe01.com\/wp-content\/uploads\/2019\/04\/img_0391.jpg","og:image:secure_url":"https:\/\/michaelrowe01.com\/wp-content\/uploads\/2019\/04\/img_0391.jpg","og:image:width":3088,"og:image:height":2316,"article:published_time":"2020-09-13T21:10:42+00:00","article:modified_time":"2022-12-15T11:46:04+00:00","twitter:card":"summary","twitter:title":"Adding Menus and Keyboard Shortcuts | Random Thoughts","twitter:image":"https:\/\/michaelrowe01.com\/wp-content\/uploads\/2019\/04\/img_0391.jpg"},"aioseo_meta_data":{"post_id":"2186","title":null,"description":"","keywords":"","keyphrases":null,"primary_term":null,"canonical_url":"","og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"","defaultPostTypeGraph":""},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-20 21:40:22","updated":"2025-06-04 00:19:05","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/michaelrowe01.com\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/michaelrowe01.com\/index.php\/category\/blog\/\" title=\"blog\">blog<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tAdding Menus and Keyboard Shortcuts\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/michaelrowe01.com"},{"label":"blog","link":"https:\/\/michaelrowe01.com\/index.php\/category\/blog\/"},{"label":"Adding Menus and Keyboard Shortcuts","link":"https:\/\/michaelrowe01.com\/index.php\/blog\/adding-menus-and-keyboard-shortcuts\/"}],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2aMa8-zg","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/posts\/2186","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/comments?post=2186"}],"version-history":[{"count":2,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/posts\/2186\/revisions"}],"predecessor-version":[{"id":2191,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/posts\/2186\/revisions\/2191"}],"wp:attachment":[{"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/media?parent=2186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/categories?post=2186"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/tags?post=2186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}