mirror of
https://github.com/danbee/persephone
synced 2025-03-04 08:39:11 +00:00
Responding to repeated space can get us into trouble
This commit is contained in:
parent
91fa2f62dc
commit
1d5d87c75b
@ -47,7 +47,9 @@ class WindowController: NSWindowController {
|
||||
override func keyDown(with event: NSEvent) {
|
||||
switch event.keyCode {
|
||||
case NSEvent.keyCodeSpace:
|
||||
App.mpdClient.playPause()
|
||||
if !event.isARepeat {
|
||||
App.mpdClient.playPause()
|
||||
}
|
||||
default:
|
||||
nextResponder?.keyDown(with: event)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user