dialog nitpicks: more close-with-esc
This commit is contained in:
		
							parent
							
								
									5fa2164ed5
								
							
						
					
					
						commit
						f0e7be79d5
					
				| 
						 | 
				
			
			@ -5252,7 +5252,7 @@ bool FurnaceGUI::loop() {
 | 
			
		|||
            quit=true;
 | 
			
		||||
          }
 | 
			
		||||
          ImGui::SameLine();
 | 
			
		||||
          if (ImGui::Button("Cancel")) {
 | 
			
		||||
          if (ImGui::Button("Cancel") || ImGui::IsKeyPressed(ImGuiKey_Escape)) {
 | 
			
		||||
            ImGui::CloseCurrentPopup();
 | 
			
		||||
          }
 | 
			
		||||
          break;
 | 
			
		||||
| 
						 | 
				
			
			@ -5276,7 +5276,7 @@ bool FurnaceGUI::loop() {
 | 
			
		|||
            displayNew=true;
 | 
			
		||||
          }
 | 
			
		||||
          ImGui::SameLine();
 | 
			
		||||
          if (ImGui::Button("Cancel")) {
 | 
			
		||||
          if (ImGui::Button("Cancel") || ImGui::IsKeyPressed(ImGuiKey_Escape)) {
 | 
			
		||||
            ImGui::CloseCurrentPopup();
 | 
			
		||||
          }
 | 
			
		||||
          break;
 | 
			
		||||
| 
						 | 
				
			
			@ -5300,7 +5300,7 @@ bool FurnaceGUI::loop() {
 | 
			
		|||
            openFileDialog(GUI_FILE_OPEN);
 | 
			
		||||
          }
 | 
			
		||||
          ImGui::SameLine();
 | 
			
		||||
          if (ImGui::Button("Cancel")) {
 | 
			
		||||
          if (ImGui::Button("Cancel") || ImGui::IsKeyPressed(ImGuiKey_Escape)) {
 | 
			
		||||
            ImGui::CloseCurrentPopup();
 | 
			
		||||
          }
 | 
			
		||||
          break;
 | 
			
		||||
| 
						 | 
				
			
			@ -5324,7 +5324,7 @@ bool FurnaceGUI::loop() {
 | 
			
		|||
            openFileDialog(GUI_FILE_OPEN_BACKUP);
 | 
			
		||||
          }
 | 
			
		||||
          ImGui::SameLine();
 | 
			
		||||
          if (ImGui::Button("Cancel")) {
 | 
			
		||||
          if (ImGui::Button("Cancel") || ImGui::IsKeyPressed(ImGuiKey_Escape)) {
 | 
			
		||||
            ImGui::CloseCurrentPopup();
 | 
			
		||||
          }
 | 
			
		||||
          break;
 | 
			
		||||
| 
						 | 
				
			
			@ -5355,7 +5355,7 @@ bool FurnaceGUI::loop() {
 | 
			
		|||
            nextFile="";
 | 
			
		||||
          }
 | 
			
		||||
          ImGui::SameLine();
 | 
			
		||||
          if (ImGui::Button("Cancel")) {
 | 
			
		||||
          if (ImGui::Button("Cancel") || ImGui::IsKeyPressed(ImGuiKey_Escape)) {
 | 
			
		||||
            ImGui::CloseCurrentPopup();
 | 
			
		||||
            nextFile="";
 | 
			
		||||
          }
 | 
			
		||||
| 
						 | 
				
			
			@ -5409,7 +5409,7 @@ bool FurnaceGUI::loop() {
 | 
			
		|||
            syncSettings();
 | 
			
		||||
          }
 | 
			
		||||
          ImGui::SameLine();
 | 
			
		||||
          if (ImGui::Button("Cancel")) {
 | 
			
		||||
          if (ImGui::Button("Cancel") || ImGui::IsKeyPressed(ImGuiKey_Escape)) {
 | 
			
		||||
            ImGui::CloseCurrentPopup();
 | 
			
		||||
          }
 | 
			
		||||
          break;
 | 
			
		||||
| 
						 | 
				
			
			@ -5496,7 +5496,7 @@ bool FurnaceGUI::loop() {
 | 
			
		|||
            ImGui::CloseCurrentPopup();
 | 
			
		||||
          }
 | 
			
		||||
 | 
			
		||||
          if (ImGui::Button("Wait! What am I doing? Cancel!")) {
 | 
			
		||||
          if (ImGui::Button("Wait! What am I doing? Cancel!") || ImGui::IsKeyPressed(ImGuiKey_Escape)) {
 | 
			
		||||
            ImGui::CloseCurrentPopup();
 | 
			
		||||
          }
 | 
			
		||||
          break;
 | 
			
		||||
| 
						 | 
				
			
			@ -5647,7 +5647,7 @@ bool FurnaceGUI::loop() {
 | 
			
		|||
        ImGui::EndDisabled();
 | 
			
		||||
        ImGui::SameLine();
 | 
			
		||||
      }
 | 
			
		||||
      if (ImGui::Button("Cancel")) {
 | 
			
		||||
      if (ImGui::Button("Cancel") || ImGui::IsKeyPressed(ImGuiKey_Escape)) {
 | 
			
		||||
        for (std::pair<DivInstrument*,bool>& i: pendingIns) {
 | 
			
		||||
          i.second=false;
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			@ -5719,7 +5719,7 @@ bool FurnaceGUI::loop() {
 | 
			
		|||
        ImGui::CloseCurrentPopup();
 | 
			
		||||
      }
 | 
			
		||||
      ImGui::SameLine();
 | 
			
		||||
      if (ImGui::Button("Cancel")) {
 | 
			
		||||
      if (ImGui::Button("Cancel") || ImGui::IsKeyPressed(ImGuiKey_Escape)) {
 | 
			
		||||
        ImGui::CloseCurrentPopup();
 | 
			
		||||
      }
 | 
			
		||||
      ImGui::EndPopup();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue