quick undo change

This commit is contained in:
2025-08-14 22:23:17 -04:00
parent 6a646717d8
commit 0b8647fe4d
2 changed files with 4 additions and 5 deletions

View File

@@ -556,7 +556,6 @@ static bool _imgui_option_popup(ImguiItem self, Imgui* imgui)
static void _imgui_context_menu(Imgui* self)
{
if (!self->isContextualActionsEnabled) return;
if (_imgui_is_window_hovered() && ImGui::IsMouseClicked(ImGuiMouseButton_Right))
imgui_open_popup(IMGUI_CONTEXT_MENU.label_get());
@@ -2548,6 +2547,7 @@ void imgui_update(Imgui* self)
{
if (ImGui::IsKeyChordPressed(hotkey.chord))
{
if (hotkey.is_undoable()) imgui_undo_push(self, hotkey.undoAction);
if (hotkey.is_focus_window()) continue;
hotkey.function(self);
}