|
@@ -641,6 +641,12 @@ class KMSearchReplaceWindowController: KMNBaseWindowController {
|
|
}
|
|
}
|
|
|
|
|
|
func search(keyboard: String) {
|
|
func search(keyboard: String) {
|
|
|
|
+ if keyboard.isEmpty {
|
|
|
|
+ handdler.resultCount = 0
|
|
|
|
+ _showIndexTip()
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
let isCase = KMDataManager.ud_bool(forKey: KMNSearchKey.caseSensitive.botaSearch)
|
|
let isCase = KMDataManager.ud_bool(forKey: KMNSearchKey.caseSensitive.botaSearch)
|
|
let isWholeWord = KMDataManager.ud_bool(forKey: KMNSearchKey.wholeWords.botaSearch)
|
|
let isWholeWord = KMDataManager.ud_bool(forKey: KMNSearchKey.wholeWords.botaSearch)
|
|
let isEditing = self.handdler.pdfView?.isEditing() ?? false
|
|
let isEditing = self.handdler.pdfView?.isEditing() ?? false
|