BalazsJako / ImGuiColorTextEdit

Colorizing text editor for ImGui
MIT License
1.44k stars 242 forks source link

Can't input text using glfw backend #111

Open Findus79 opened 4 years ago

Findus79 commented 4 years ago

Hi,

I started using your great widget. I am using a glfw backend, and ImGui itself works fine for text input. I followed your sample, but when I enter text, the character gets printed on the screen and immediately removed again.

Any ideas? Thanks

SocketByte commented 4 years ago

Same problem here, not really sure why is that. Did you manage to fix it somehow?

// Edit Oh, nevermind. I'm actually stupid. I was allocating the editor in the loop, so I was creating a new editor each frame. Probably OP had the same issue.

VeithBuergerhoff commented 3 years ago

Try having a look at this comment if you are having problems setting up ImGuiColorTextEdit.