summaryrefslogtreecommitdiff
path: root/src/imgui_ui.cpp
diff options
context:
space:
mode:
authorFox Caminiti <fox@foxcam.net>2023-02-13 11:12:47 -0500
committerFox Caminiti <fox@foxcam.net>2023-02-13 11:12:47 -0500
commitfffb3474ee0321d73a47db01dbc4b6b19670ddc5 (patch)
treeaf4c14469a6a49c59785c426f149be43f3bd1147 /src/imgui_ui.cpp
parentbd25daeae033e4f905ae0145831a7d8fdd92e471 (diff)
drag and drop file loading
Diffstat (limited to 'src/imgui_ui.cpp')
-rw-r--r--src/imgui_ui.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/imgui_ui.cpp b/src/imgui_ui.cpp
index 62fcb2a..817fc1d 100644
--- a/src/imgui_ui.cpp
+++ b/src/imgui_ui.cpp
@@ -530,6 +530,7 @@ ImGui_ProcessInputs(project_data *File, project_state *State, ui *UI, memory *Me
}
}
} else if (State->FocusedWindow == focus_viewport) {
+ /*
if (ImGui::IsKeyPressed(ImGuiKey_S)) {
State->Interact_Offset[1] = SDL_GetPerformanceCounter();
State->Interact_Offset[2] = io.MousePos.x;
@@ -542,6 +543,7 @@ ImGui_ProcessInputs(project_data *File, project_state *State, ui *UI, memory *Me
State->Interact_Offset[3] = io.MousePos.y;
State->Interact_Active = interact_type_viewport_transform;
}
+ */
}
}
if (ImGui::IsKeyPressed(ImGuiKey_Escape)) {
@@ -672,6 +674,9 @@ ImGui_Menu(project_data *File, project_state *State, ui *UI, memory *Memory, ImG
{
if (ImGui::BeginMenu("File"))
{
+ if (ImGui::IsWindowFocused()) {
+ State->MenuFocused = 1;
+ }
if (ImGui::MenuItem("Save", "Ctrl+S"))
{
if (State->Filename[0] == '\0')