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:
parent
ca56f0747e
commit
c9942aa828
@ -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();
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user