Fix key command conflicts
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user