Skip to content

Commit

Permalink
fix: allow foxit to use force get selected text
Browse files Browse the repository at this point in the history
  • Loading branch information
tisfeng committed Dec 9, 2024
1 parent 024016e commit 31bbc43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Easydict/Swift/View/SettingView/Tabs/TabView/AboutTab.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ struct SettingsAboutTab: View {
struct AboutTab: View {
// MARK: Internal

@Environment(\.openWindow) private var openWindow

var body: some View {
VortexViewReader { proxy in
GeometryReader { geometry in
Expand Down Expand Up @@ -119,6 +117,8 @@ struct AboutTab: View {

// MARK: Private

@Environment(\.openWindow) private var openWindow

private var appName: String {
Bundle.main.infoDictionary?["CFBundleName"] as? String ?? ""
}
Expand Down
1 change: 1 addition & 0 deletions Easydict/objc/EventMonitor/EZEventMonitor.m
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,7 @@ - (BOOL)shouldUseSimulatedCopyWithAXError:(AXError)axError {
@"com.microsoft.VSCode", // VSCode
@"com.jetbrains.intellij.ce", // IDEA
@"com.foxitsoftware.FoxitReaderLite", // Foxit PDF Reader
@"com.foxit-software.Foxit.PDF.Reader", // 福昕PDF阅读器 https://www.foxitsoftware.cn/pdf-reader/
],

// Some Apps return kAXErrorAttributeUnsupported -25205, but actually has selected text.
Expand Down

0 comments on commit 31bbc43

Please sign in to comment.