ImGuiColorTextEdit icon indicating copy to clipboard operation
ImGuiColorTextEdit copied to clipboard

`ImGui::GetKeyIndex ` function does not exist in current version of ImGui (1.91)

Open jakerieger opened this issue 11 months ago • 2 comments

if (!IsReadOnly() && ctrl && !shift && !alt && ImGui::IsKeyPressed(ImGui::GetKeyIndex(ImGuiKey_Z)))

should be changed to:

if (!IsReadOnly() && ctrl && !shift && !alt && ImGui::IsKeyPressed(ImGuiKey_Z))

Error: error C2039: 'GetKeyIndex': is not a member of 'ImGui'

jakerieger avatar Feb 23 '25 05:02 jakerieger

Hi, did you find a workaround through this?

Welepy-dev avatar May 22 '25 18:05 Welepy-dev

Just remove the IsKeyPressed function. like

	MoveEnd(shift);

Baugle avatar May 23 '25 18:05 Baugle