diff --git a/Source/Modules/WindowControllers/CtlPrefWindow.swift b/Source/Modules/WindowControllers/CtlPrefWindow.swift
index 3fe0a9b8..ee859c3e 100644
--- a/Source/Modules/WindowControllers/CtlPrefWindow.swift
+++ b/Source/Modules/WindowControllers/CtlPrefWindow.swift
@@ -27,6 +27,7 @@ class CtlPrefWindow: NSWindowController, NSWindowDelegate {
@IBOutlet var chkTrad2JISShinjitai: NSButton!
@IBOutlet var cmbCandidateFontSize: NSPopUpButton!
@IBOutlet var chkFartSuppressor: NSButton!
+ @IBOutlet var chkCapsLockNotification: NSButton!
@IBOutlet var chkRevLookupInCandidateWindow: NSButton!
@IBOutlet var btnBrowseFolderForUserPhrases: NSButton!
@@ -95,6 +96,11 @@ class CtlPrefWindow: NSWindowController, NSWindowDelegate {
stkShiftKeyASCIITogglesPane.isHidden = true
}
+ if #unavailable(macOS 12) {
+ chkCapsLockNotification.isEnabled = false
+ chkCapsLockNotification.toolTip = "This feature requires macOS 12 and above.".localized
+ }
+
chkFartSuppressor.isHidden = !Date.isTodayTheDate(from: 0401)
chkFartSuppressor.isEnabled = !chkFartSuppressor.isHidden
diff --git a/Source/WindowNIBs/Base.lproj/frmPrefWindow.xib b/Source/WindowNIBs/Base.lproj/frmPrefWindow.xib
index 3ed3ab19..9ea2211b 100644
--- a/Source/WindowNIBs/Base.lproj/frmPrefWindow.xib
+++ b/Source/WindowNIBs/Base.lproj/frmPrefWindow.xib
@@ -15,6 +15,7 @@
+
@@ -58,14 +59,14 @@
-
+
-
+
-
+
@@ -132,13 +133,13 @@
-
+
-
+
@@ -149,10 +150,10 @@
-
+
+
@@ -224,6 +238,7 @@
+
@@ -231,6 +246,7 @@
+
@@ -442,7 +458,7 @@
-
+