Added support for Home, End, PageUp and PageDown in hex view

Resolves #148
This commit is contained in:
WerWolv
2021-01-28 13:23:50 +01:00
parent 319068eef5
commit a3d71b1dca
4 changed files with 21 additions and 8 deletions

View File

@@ -95,6 +95,11 @@ namespace hex {
EventManager::unsubscribe(eventType, this);
}
void View::discardNavigationRequests() {
if (ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows))
ImGui::GetIO().ConfigFlags &= ~ImGuiConfigFlags_NavEnableKeyboard;
}
void View::doLater(std::function<void()> &&function) {
SharedData::deferredCalls.push_back(function);
}