diff options
author | Campbell Barton <campbell@blender.org> | 2022-06-23 14:19:22 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-06-23 15:25:13 +0300 |
commit | b8403b065e222faff3dfb3e2e9aa1b3d3f56c555 (patch) | |
tree | e7eebb34c96b27f9abe29a660de2c6b846982796 /intern | |
parent | e63799e791109bc4357995566e421648bf9c5c4c (diff) |
Fix T99027: Touch typing in text fields results in dropped key presses
Fix by always testing unhandled double-click events as press events,
irrespective of the previous event type.
**Details**
Handling double-click events only ran when the previously pressed-key
matched the current pressed-key.
Originally when double-click support was added the previous type was
compared (ignoring it's press/release value) and while not necessary
it was harmless as it matched the check for double-click events being
generated.
As of [0] the logic for click/drag detection changed to ignore release
events as release this could interrupt dragging.
This made it possible to generate double-click events that failed the
`event->prev_press_type == event->type` comparison.
In these cases it was possible to generate double-click
events that would not fall-back to a 'press' value when unhandled.
[0]: 102644cb8cbb8b21e55643cebe2ed364885023a6
Diffstat (limited to 'intern')
0 files changed, 0 insertions, 0 deletions