ctrl drag&drop fix (use IsKeyDown instead of IsKeyPressed)
This commit is contained in:
		
							parent
							
								
									32ea140a61
								
							
						
					
					
						commit
						2382c19583
					
				| 
						 | 
				
			
			@ -85,7 +85,7 @@ const char* sampleNote[12]={
 | 
			
		|||
      int target=i; \
 | 
			
		||||
      bool markModified=false; \
 | 
			
		||||
      if (_toMoveVar!=target) { \
 | 
			
		||||
        if (ImGui::IsKeyPressed(ImGuiKey_ModCtrl)) { \
 | 
			
		||||
        if (ImGui::IsKeyDown(ImGuiKey_ModCtrl)) { \
 | 
			
		||||
          markModified=_swapFn(_toMoveVar,target); \
 | 
			
		||||
        } else { \
 | 
			
		||||
          while (_toMoveVar>target) { \
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue