Skip to content

Commit

Permalink
Merge pull request #1399 from decodism/main-2
Browse files Browse the repository at this point in the history
Add title bar tab group support
  • Loading branch information
rxhanson authored Jun 4, 2024
2 parents cb791e6 + 4834fc7 commit 8074ce6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Rectangle/AccessibilityElement.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ class AccessibilityElement {
return role == .group
}

var isTabGroup: Bool? {
guard let role = role else { return nil }
return role == .tabGroup
}

var isStaticText: Bool? {
guard let role = role else { return nil }
return role == .staticText
Expand Down
2 changes: 1 addition & 1 deletion Rectangle/TitleBarManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class TitleBarManager {
}
guard
titleBarFrame.contains(location),
element.isWindow == true || element.isToolbar == true || element.isGroup == true || element.isStaticText == true
element.isWindow == true || element.isToolbar == true || element.isGroup == true || element.isTabGroup == true || element.isStaticText == true
else {
return
}
Expand Down

0 comments on commit 8074ce6

Please sign in to comment.