sys: Moved to a better shortcut handling system

This commit is contained in:
WerWolv
2021-12-23 15:11:38 +01:00
parent 8db0305c83
commit 936d1d6072
16 changed files with 453 additions and 208 deletions

View File

@@ -23,8 +23,6 @@ namespace hex::plugin::builtin {
bool isAvailable() override { return true; }
bool shouldProcess() override { return true; }
bool handleShortcut(bool keys[512], bool ctrl, bool shift, bool alt) override;
bool hasViewMenuItemEntry() override { return false; }
ImVec2 getMinSize() override { return ImVec2(400, 100); }
ImVec2 getMaxSize() override { return ImVec2(400, 100); }

View File

@@ -26,7 +26,6 @@ namespace hex::plugin::builtin {
void drawContent() override;
void drawAlwaysVisible() override;
void drawMenu() override;
bool handleShortcut(bool keys[512], bool ctrl, bool shift, bool alt) override;
private:
MemoryEditor m_memoryEditor;
@@ -72,6 +71,8 @@ namespace hex::plugin::builtin {
void copyHexView() const;
void copyHexViewHTML() const;
void registerEvents();
void registerShortcuts();
};
}