mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-13 11:39:47 +00:00
Fixup debugger_frame double events
This commit is contained in:
parent
5a365506f7
commit
e0853095e3
1 changed files with 11 additions and 0 deletions
|
@ -267,6 +267,17 @@ void debugger_list::scroll(s32 steps)
|
||||||
|
|
||||||
void debugger_list::keyPressEvent(QKeyEvent* event)
|
void debugger_list::keyPressEvent(QKeyEvent* event)
|
||||||
{
|
{
|
||||||
|
// Always accept event (so it would not bubble upwards, debugger_frame already sees it)
|
||||||
|
struct accept_event_t
|
||||||
|
{
|
||||||
|
QKeyEvent* event;
|
||||||
|
|
||||||
|
~accept_event_t() noexcept
|
||||||
|
{
|
||||||
|
event->accept();
|
||||||
|
}
|
||||||
|
} accept_event{event};
|
||||||
|
|
||||||
if (!isActiveWindow())
|
if (!isActiveWindow())
|
||||||
{
|
{
|
||||||
QListWidget::keyPressEvent(event);
|
QListWidget::keyPressEvent(event);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue