Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS target beeps on every keystroke #4

Closed
DavidPhillipOster opened this issue Jan 10, 2022 · 1 comment · Fixed by #11
Closed

macOS target beeps on every keystroke #4

DavidPhillipOster opened this issue Jan 10, 2022 · 1 comment · Fixed by #11

Comments

@DavidPhillipOster
Copy link

Consider adding to ClockScene.swift:

    /// without this, it beeps on every keystroke, recognized or not.
    override func keyDown(with event: NSEvent) {
      if let character = event.characters {
        switch character {
        case "c","o","p","q","r","t","w":
          break
        default:
          super.keyDown(with: event)
        }
      }
    }
@amiantos
Copy link
Owner

Hah! Thanks, I think I had my speakers off the whole time I was working on this so I never heard the beeping during dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants