mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-27 23:37:05 -05:00
feat: Added shortcuts for the pattern debugger
This commit is contained in:
@@ -1312,9 +1312,26 @@ namespace hex::plugin::builtin {
|
||||
this->m_textEditor.SetBreakpoints(breakpoints);
|
||||
});
|
||||
|
||||
/* Trigger evaluation */
|
||||
ShortcutManager::addGlobalShortcut(Keys::F5 + AllowWhileTyping, [this] {
|
||||
this->m_triggerAutoEvaluate = true;
|
||||
});
|
||||
|
||||
/* Continue debugger */
|
||||
ShortcutManager::addGlobalShortcut(SHIFT + Keys::F9 + AllowWhileTyping, [this] {
|
||||
auto &runtime = ContentRegistry::PatternLanguage::getRuntime();
|
||||
if (runtime.isRunning())
|
||||
this->m_breakpointHit = false;
|
||||
});
|
||||
|
||||
/* Step debugger */
|
||||
ShortcutManager::addGlobalShortcut(SHIFT + Keys::F7 + AllowWhileTyping, [this] {
|
||||
auto &runtime = ContentRegistry::PatternLanguage::getRuntime();
|
||||
if (runtime.isRunning()) {
|
||||
runtime.getInternals().evaluator->pauseNextLine();
|
||||
this->m_breakpointHit = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user