PM-Oberfläche: Favoriten/Navigator/Aufgaben, Tabs, PM-Filter, PM-Kacheln, IPTC-Layout wie PM, ⌘I Mass-Edit, ⌘U Upload, Code-Ersetzung live, 8 Farbklassen, paralleles + gecachtes Metadaten-Laden, BILDER/INPUT+SENT
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012bGzgsxrmbBhDzeMV2L57D
This commit is contained in:
1 parent
d100249c12
commit
c0ee93995f
18 files changed
+1311
-515
No files matched your search
@@ -47,16 +47,22 @@ final class KeyboardMonitor {
|
||||
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 .photoMechanic:
|
||||
// PM: 1–8 = color class, 0 = none · ⌥1–5 = stars, ⌥0 = no stars
|
||||
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 }
|
||||
case .lightroom:
|
||||
if digit <= 5 { state.setRating(digit); return true }
|
||||
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:
|
||||
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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user