mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-22 23:58:36 +01:00
Allow ImageViewController to be closed with the space key on physical keyoard for iOS.
This commit is contained in:
parent
711eeddecc
commit
bfe63c4e19
@ -25,6 +25,16 @@ class ImageViewController: UIViewController {
|
|||||||
return imageScrollView.zoomedFrame
|
return imageScrollView.zoomedFrame
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override var keyCommands: [UIKeyCommand]? {
|
||||||
|
return [
|
||||||
|
UIKeyCommand(
|
||||||
|
title: NSLocalizedString("Close Image", comment: "Close Image"),
|
||||||
|
action: #selector(done(_:)),
|
||||||
|
input: " "
|
||||||
|
)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user