klonyyy / STMViewer

Real-time STM32 variable & trace viewer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Space key to start/stop acquisition

dzid26 opened this issue · comments

Nice to have.

I saw your commit.

In addition I was also looking at using io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; (which is nice in itself for navigating toolbar menu) with ImGui::SetKeyboardFocusHere(0); (placed before start button).

It creates this pretty frame around the start button, and it is visible that the button is being pressed. But it flickers, since the focus is called all the time and interferes with toolbar navigation.

This may not be possible to solve easily.

Also related:
ocornut/imgui#5606 (comment)

I think navigation using the keyboard is a secondary task, as most people using STMViewer I know, are primarily navigating with the mouse. Let's see if the issue gains more attention in the future. I'll close it for now but feel free to reopen, vote for adding such feature or contribute to implement it.