IPTC-Info- und Aufgaben-Fenster wie PM, Ingest im Hintergrund + Karten-Erkennung, ⌘E Lightroom, RAW/SENT-Workflow, schnellere Auswahl, Zahlen = Sterne

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012bGzgsxrmbBhDzeMV2L57D
This commit is contained in:
Lichtkasten DevandClaude Opus 5.5 committed 2026-11-03 23:27:14 +00:00
1 parent 42ab9c9361
commit d100249c12
18 files changed
+977 -213

No files matched your search

@@ -16,14 +16,15 @@ final class KeyboardMonitor {
}
}
private func isTyping(_ event: NSEvent) -> Bool {
guard let window = event.window else { return true }
if window.attachedSheet != nil || window.isSheet || window != NSApp.mainWindow { return true }
return window.firstResponder is NSText || window.firstResponder is NSTextView
/// Only handle keys in the browser window and never while typing in a text field.
private func isTyping(_ event: NSEvent, state: AppState) -> Bool {
guard let window = event.window, window === state.browserWindow else { return true }
if window.attachedSheet != nil { return true }
return window.firstResponder is NSText
}
private func handle(_ event: NSEvent, state: AppState) -> Bool {
if isTyping(event) { return false }
if isTyping(event, state: state) { return false }
let mods = event.modifierFlags.intersection(.deviceIndependentFlagsMask)
let shift = mods.contains(.shift)
if mods.contains(.command) || mods.contains(.control) { return false }
@@ -42,28 +43,20 @@ final class KeyboardMonitor {
guard let ch = event.charactersIgnoringModifiers?.lowercased(), let c = ch.first else { return false }
if c == "t" { state.toggleTag(); return true }
if c == "i" { state.openWindow("iptc"); return true }
if c == "z", state.previewMode { state.zoom100.toggle(); return true }
guard let digit = c.wholeNumberValue else { return false }
// Number keys = stars in both schemes (like PM with "number keys set rating").
if !mods.contains(.option), digit <= 5 { state.setRating(digit); return true }
switch state.settings.keyScheme {
case .lightroom:
switch digit {
case 0...5: state.setRating(digit)
case 6: state.setLabel(.red)
case 7: state.setLabel(.yellow)
case 8: state.setLabel(.green)
case 9: state.setLabel(.blue)
default: return false
}
let map: [Int: ColorLabel] = [6: .red, 7: .yellow, 8: .green, 9: .blue]
guard let l = map[digit] else { return false }
state.setLabel(l)
case .photoMechanic:
if mods.contains(.option) {
guard digit <= 5 else { return false }
state.setRating(digit)
} else if digit == 0 {
state.setLabel(nil)
} else if let l = ColorLabel(pmColorClass: digit) {
state.setLabel(l)
} else { return false }
guard mods.contains(.option) else { return false }
if digit == 0 { state.setLabel(nil) } else if let l = ColorLabel(pmColorClass: digit) { state.setLabel(l) } else { return false }
}
return true
}