Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Source/gui/SNTBinaryMessageWindowView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ struct MoreDetailsView: View {
}
}
.buttonStyle(ScalingButtonStyle())
.keyboardShortcut(.escape, modifiers: .command)
.help("Esc")
.keyboardShortcut(.cancelAction)
.help("Esc")
}

Spacer()
Expand Down
4 changes: 2 additions & 2 deletions Source/gui/SNTFileAccessMessageWindowView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ struct MoreDetailsView: View {
}
}
.buttonStyle(ScalingButtonStyle())
.keyboardShortcut(.escape, modifiers: .command)
.help("Esc")
.keyboardShortcut(.cancelAction)
.help("Esc")
}

Spacer()
Expand Down
4 changes: 2 additions & 2 deletions Source/gui/SNTMessageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ public func DismissButton(
Text(t).frame(maxWidth: 200.0)
}
)
.keyboardShortcut(.escape, modifiers: .command)
.help("⌘ Esc")
.keyboardShortcut("w", modifiers: .command)
.help("⌘ W")
}

// TextWithLimit is like Text() but it supports a limit on the number of characters in the
Expand Down
4 changes: 2 additions & 2 deletions Source/gui/SNTNetworkMountMessageWindowView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ struct MoreDetailsView: View {
}
}
.buttonStyle(ScalingButtonStyle())
.keyboardShortcut(.escape, modifiers: .command)
.help("Esc")
.keyboardShortcut(.cancelAction)
.help("Esc")
}

Spacer()
Expand Down
6 changes: 5 additions & 1 deletion Source/gui/SNTTestGUI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,17 @@ struct BinaryView: View {
case .Nov25: Date.overrideDate = Date(timeIntervalSince1970: 1732544115)
}

// Mirror SNTExecutionController.mm: customURL falls back to the EventDetailURL
// config so the Open Event button appears in the harness.
let effectiveURL = customURL.isEmpty ? eventDetailURL : customURL

let window = NSWindow()
ShowWindow(
SNTBinaryMessageWindowViewFactory.createWith(
window: window,
event: event,
customMsg: customMsg as NSString?,
customURL: customURL as NSString?,
customURL: effectiveURL.isEmpty ? nil : (effectiveURL as NSString),
configState: SNTConfigState(config: SNTConfigurator.configurator()),
bundleProgress: SNTBundleProgress(),
uiStateCallback: { interval in print("Silence interval was set to \(interval)") },
Expand Down
Loading