Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot type in Dear ImGui textbox #17

Open
AnClark opened this issue Nov 30, 2024 · 7 comments
Open

Cannot type in Dear ImGui textbox #17

AnClark opened this issue Nov 30, 2024 · 7 comments

Comments

@AnClark
Copy link

AnClark commented Nov 30, 2024

Hi @falkTX !

I found that I'm unable to type any text in Dear ImGui textbox (ImGui::InputText() or other text input widgets). Only VST2 format can type.

Same problem occurs in Dear Plugins as well.

Do you have any idea?


Note:

  • Metrics Tool shows that Dear ImGui does not receive any char queue.
  • Dear ImGui can handle Enter and Backspace keys normally.
@dromer
Copy link
Collaborator

dromer commented Nov 30, 2024

Which OS and plugin host are you using?

@AnClark
Copy link
Author

AnClark commented Nov 30, 2024

Which OS and plugin host are you using?

@dromer
Copy link
Collaborator

dromer commented Nov 30, 2024

* I'm using Arch Linux with KDE.

Plugin host, not window manager :)
Aka: which program is hosting the VST2 plugin?

Do you get the same result with other plugin formats?

@AnClark
Copy link
Author

AnClark commented Nov 30, 2024

Do you get the same result with other plugin formats?

Sure. Both VST3 and **Standalone (JACK) ** has the same result (cannot type text).

You can try the current Dear Plugins repo to reproduce this issue.

which program is hosting the VST2 plugin?

REAPER.

@dromer
Copy link
Collaborator

dromer commented Nov 30, 2024

I am unable to reproduce the issue on my system (Debian Stable with Fluxbox WM).
Both Jack standalone and VST3 (in REAPER) work correctly.

I didn't need to do this, but you may need to enable "Send all keyboard input to plugin":
2024-11-30_12-51

@AnClark
Copy link
Author

AnClark commented Nov 30, 2024

OK. now Text Editor plugin works well on VST2 and VST3. But Standalone still have issue.


Update: But it's not stable enough on REAPER. Sometimes even VST2 still cannot type anything.

@AnClark
Copy link
Author

AnClark commented Nov 30, 2024

How to reproduce this issue:

  1. Build ImGuiDemo (or Text Editor) in Dear Plugins.
  2. Add plugin's VST3 binary to REAPER's scan path.
  3. Run reaper -new to start REAPER, add an ImGuiDemo VST3 instance to a new track.
  4. In plugin GUI, expand "Input & Focus", type something. At this time, "Chars queue" should show what character you typed.
  5. Close FX Window, then retry Step 4. You will see that you cannot type anything anymore.

圖片

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants