Skip to content

Commit a4af283

Browse files
committed
impr: Allow data inspector shortcuts to work when hex editor is selected
1 parent 27935b1 commit a4af283

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plugins/builtin/include/content/views/view_hex_editor.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#pragma once
22

3+
#include "hex/api/content_registry/views.hpp"
4+
35
#include <hex/ui/view.hpp>
46

57
#include <ui/hex_editor.hpp>
@@ -42,6 +44,10 @@ namespace hex::plugin::builtin {
4244
m_hexEditor.jumpIfOffScreen();
4345
}
4446

47+
View* getMenuItemInheritView() const override {
48+
return ContentRegistry::Views::getViewByName("hex.builtin.view.data_inspector.name");
49+
}
50+
4551
public:
4652
class Popup {
4753
public:

0 commit comments

Comments
 (0)