Ctrl+R shortcut for refreshing memory inspection panes
This commit is contained in:
@@ -409,6 +409,13 @@ namespace Bloom::Widgets
|
||||
PaneWidget::resizeEvent(event);
|
||||
}
|
||||
|
||||
void TargetMemoryInspectionPane::keyPressEvent(QKeyEvent* event) {
|
||||
if ((event->modifiers() & Qt::ControlModifier) != 0 && event->key() == Qt::Key::Key_R) {
|
||||
this->refreshButton->click();
|
||||
event->accept();
|
||||
}
|
||||
}
|
||||
|
||||
void TargetMemoryInspectionPane::postActivate() {
|
||||
if (
|
||||
(this->settings.refreshOnActivation || !this->data.has_value())
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include <QResizeEvent>
|
||||
#include <QHBoxLayout>
|
||||
#include <QToolButton>
|
||||
#include <QKeyEvent>
|
||||
|
||||
#include "src/Insight/UserInterfaces/InsightWindow/Widgets/PaneWidget.hpp"
|
||||
|
||||
@@ -42,6 +43,7 @@ namespace Bloom::Widgets
|
||||
|
||||
protected:
|
||||
void resizeEvent(QResizeEvent* event) override;
|
||||
void keyPressEvent(QKeyEvent* event) override;
|
||||
|
||||
void postActivate();
|
||||
void postDeactivate();
|
||||
|
||||
Reference in New Issue
Block a user