mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-04 15:11:05 +01:00 
			
		
		
		
	InputText() consume input characters immediately (fixes #105)
This commit is contained in:
		@@ -4883,6 +4883,9 @@ bool ImGui::InputText(const char* label, char* buf, size_t buf_size, ImGuiInputT
 | 
				
			|||||||
                    edit_state.OnKeyPressed(c);
 | 
					                    edit_state.OnKeyPressed(c);
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            // Consume characters
 | 
				
			||||||
 | 
					            memset(g.IO.InputCharacters, 0, sizeof(g.IO.InputCharacters));
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        edit_state.CursorAnim += g.IO.DeltaTime;
 | 
					        edit_state.CursorAnim += g.IO.DeltaTime;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user