diff --git a/App/AppDelegate.swift b/App/AppDelegate.swift index 6f95e90..b0e452d 100644 --- a/App/AppDelegate.swift +++ b/App/AppDelegate.swift @@ -45,7 +45,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { // Focus Web View UIKeyCommand( - modifiers: .command, input: "b", + modifiers: .command, input: "e", title: "Focus Web View", action: #selector(ShortcutResponder.focusWebView) ), @@ -108,7 +108,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { // Toggle Dark Mode UIKeyCommand( - modifiers: [.command], input: "D", + modifiers: [.command], input: "M", title: "Toggle Dark Mode", action: #selector(ShortcutResponder.toggleDarkMode) ), @@ -121,9 +121,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate { override func buildMenu(with builder: UIMenuBuilder) { builder.replaceChildren(ofMenu: .file) { children in - return Self.fileMenuShortcuts() + children + return Self.fileMenuShortcuts() + children } + builder.remove(menu: .format) + builder.replaceChildren(ofMenu: .application, from: { children in let index = children.firstIndex(where: { elem in if let elem = elem as? UIMenu {