79737857

Date: 2025-08-17 13:35:25
Score: 1
Natty:
Report link

in 2025, "shift" shows up in event.modifiers, so your onClick function can simply check there and return if shift is not present.

if "shift" not in event.modifiers:
return

this is much simpler than setting a global shift_is_held flag as was previously done

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Thomas Pfeifer