santaclose / ImGuiColorTextEdit

Colorizing text editor for ImGui
MIT License
67 stars 18 forks source link

Bracket input with ctrl == alt #28

Open sonoro1234 opened 1 month ago

sonoro1234 commented 1 month ago

Hi,

Due to https://github.com/santaclose/ImGuiColorTextEdit/blob/master/TextEditor.cpp#L2069 having ctrl == alt I have to use ctrl key with alt key to for example input [. In imgui demo text input this is not needed. Why is ctrl == alt needed?

santaclose commented 1 month ago

Hi! this line comes from this pull request:

which should fix AltGr for some keyboard layouts i don't use, so I only tested it didn't break on the US layout. Please let me know what layout you're using, and what's the behavior you expect.

sonoro1234 commented 1 month ago

It is a Spanish keyboard (ESP). With LeftCtrl and LeftAlt I can input ] but not with RightAlt which in ImGui::InputText works. I can live without it but something works different between TextEditor and InputText.