From 5a76bebaae2c054c9b1a371ce3d508865b3c44e3 Mon Sep 17 00:00:00 2001 From: Satindar Dhillon Date: Sun, 3 Jul 2022 22:57:42 -0700 Subject: [PATCH] add keyboard shortcuts for reader settings --- apple/OmnivoreKit/Sources/App/MacMenuCommands.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apple/OmnivoreKit/Sources/App/MacMenuCommands.swift b/apple/OmnivoreKit/Sources/App/MacMenuCommands.swift index e84877e05..a17f1f192 100644 --- a/apple/OmnivoreKit/Sources/App/MacMenuCommands.swift +++ b/apple/OmnivoreKit/Sources/App/MacMenuCommands.swift @@ -22,6 +22,7 @@ import Views }, label: { Text("Increase Reader Font Size") } ) + .keyboardShortcut("+") Button( action: { @@ -31,6 +32,7 @@ import Views label: { Text("Decrease Reader Font Size") } ) + .keyboardShortcut("-") } } @@ -44,6 +46,7 @@ import Views label: { Text("Increase Reader Margin") } ) + .keyboardShortcut("]") Button( action: { @@ -53,6 +56,7 @@ import Views label: { Text("Decrease Reader Margin") } ) + .keyboardShortcut("[") } } @@ -65,6 +69,7 @@ import Views }, label: { Text("Increase Reader Line Spacing") } ) + .keyboardShortcut("l") Button( action: { @@ -73,7 +78,7 @@ import Views }, label: { Text("Decrease Reader Line Spacing") } ) -// .keyboardShortcut("l") + .keyboardShortcut("k") } }