Make keydown NSEvent run once in Swift

前端 未结 0 1833
心在旅途
心在旅途 2021-02-19 01:35

NSEvent keydown code is running repeatedly when key is pressed. How do I make sure that the event runs only once then stop listening until key up event occurs?

           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题