macOS: Get back removing tunnel using the Delete key
This now works only when the list view has focus
This commit is contained in:
parent
b0bdae8834
commit
33b9ffa74b
|
@ -309,6 +309,14 @@ extension TunnelsListTableViewController: NSTableViewDelegate {
|
|||
}
|
||||
}
|
||||
|
||||
extension TunnelsListTableViewController {
|
||||
override func keyDown(with event: NSEvent) {
|
||||
if event.specialKey == .delete {
|
||||
handleRemoveTunnelAction()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class FillerButton: NSButton {
|
||||
override var intrinsicContentSize: NSSize {
|
||||
return NSSize(width: NSView.noIntrinsicMetric, height: NSView.noIntrinsicMetric)
|
||||
|
|
Loading…
Reference in New Issue