Skip to content

py,st3m: Pressable: Fix "flickering" of .down property with repeat enabled

Phileas requested to merge pressable into main

.down property was returning True only if the pressable was in DOWN state. This leads to glitches, as because of key repeat it also goes through REPEATED state while the pressable is being held, going against the documented behavior. Fix this by considering both DOWN and REPEATED states when evaluating the property.

Edited by Phileas

Merge request reports