Func is one button with a dark panel of functions; Translator (⌃⌥R or Func): selected text RU<->EN via macOS Translation or claude Haiku, card holds the notch open

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maksarsanjeev
2026-10-07 15:57:06 +03:00
parent 9570dc190f
commit e11d06c73e
7 changed files with 356 additions and 13 deletions
@@ -211,6 +211,7 @@ final class IslandWindowController: NSWindowController {
fsm.isHeldOpen = {
let s = AppState.shared
return s.pendingApproval != nil || (s.mode == .expanded && s.view.isTall)
|| (s.mode == .expanded && s.translation != nil)
}
}
@@ -445,6 +446,9 @@ final class IslandWindowController: NSWindowController {
case .desktopToggle:
DesktopMochiController.shared.flyOutOrHome()
case .translate:
TranslatorRun.start(state: state)
case .wardrobeToggle:
if state.mode == .expanded && state.view == .wardrobe {
collapse()