Make keydown NSEvent run once in Swift

前端 未结 0 658
太阳男子
太阳男子 2021-02-19 01:22

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?

           


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