1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 18:53:28 +01:00

debugger: Fix key events when CallStack is focused

This commit is contained in:
Eladash 2023-06-05 08:51:40 +03:00 committed by Ivan
parent ca56f0747e
commit c9942aa828
2 changed files with 10 additions and 0 deletions

View File

@ -2,6 +2,8 @@
#include "Utilities/StrFmt.h"
#include <QKeyEvent>
constexpr auto qstr = QString::fromStdString;
call_stack_list::call_stack_list(QWidget* parent) : QListWidget(parent)
@ -17,6 +19,12 @@ call_stack_list::call_stack_list(QWidget* parent) : QListWidget(parent)
hide();
}
void call_stack_list::keyPressEvent(QKeyEvent* event)
{
QListWidget::keyPressEvent(event);
event->ignore(); // Propagate the event to debugger_frame
}
void call_stack_list::HandleUpdate(const std::vector<std::pair<u32, u32>>& call_stack)
{
clear();

View File

@ -21,4 +21,6 @@ public Q_SLOTS:
void HandleUpdate(const std::vector<std::pair<u32, u32>>& call_stack);
private Q_SLOTS:
void OnCallStackListDoubleClicked();
private:
void keyPressEvent(QKeyEvent* event) override;
};