GUI/AGI: Predictive dialog glitches when two buttons are pressed at once
|Reported by:||salty-horse||Owned by:|
Start an AGI game and click the text prompt line to open the predictive dialog.
On the keyboard numpad, press two keys at once.
The corresponding on-screen buttons will changed to "pressed", but once the keyboard keys are released, only one of the on-screen buttons will change its state, while the other button will still show as pressed.
The predictive dialog only tracks one "pressed" button, so it can't handle several buttons being pressed. The code itself is rather confusing, with two variables having a similar name:
_lastPressed, so any should perhaps rename one of them.
A recent pull request removed the "sticky keys" feature, that affected the predictive dialog, but this problem existed before the change.
Ticket imported from: bugs/7125.