asweigart / pyautogui

A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard.
BSD 3-Clause "New" or "Revised" License
10.22k stars 1.24k forks source link

keyDown strict mode #876

Open divinity76 opened 1 month ago

divinity76 commented 1 month ago

this will make it easier to debug keyDown typo errors (which previously were totally ignored making it a silent no-op failure.)

For backwards-compatibility it's false-by-default (not sure that is actually a good idea: scripts hitting the failure are probably already broken! )