SavinaRoja / PyUserInput

A module for cross-platform control of the mouse and keyboard in python that is simple to install and use.
GNU General Public License v3.0
1.07k stars 244 forks source link

How to keep key pressed on Mac OS X? #109

Open etworker opened 6 years ago

etworker commented 6 years ago

I need to keep the Command key in pressed state. In Windows, below is ok. k.press_key(k.control_key)

I tried as below in Mac OS X, but only act as press and release once. k.press_key('Command')

Anybody knows how to realize the same action in Mac OS X? thanks!