Opened 3 years ago

Last modified 3 years ago

#7125 new defect

GUI/AGI: Predictive dialog glitches when two buttons are pressed at once

Reported by: salty-horse Owned by:
Priority: low Component: GUI
Keywords: Cc:
Game:

Description

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: _lastPressedButton and _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.

Change History (1)

comment:1 by sev-, 3 years ago

Component: GUI
Note: See TracTickets for help on using tickets.