Cinder icon indicating copy to clipboard operation
Cinder copied to clipboard

app stops updating when you press the alt key (windows)

Open q-depot opened this issue 7 years ago • 4 comments

Hi,

I've already reported this bug on the forum: http://discourse.libcinder.org/t/alt-key-on-windows-pause-the-app/696/3

q-depot avatar May 24 '17 15:05 q-depot

I did some investigating into this and it appears that a hidden menu is taking focus of the messaging in our WndProc. Using Spy++, you can see the messages WM_INITMENU, WM_MENUSELECT, and then WM_ENTERIDLE repeatedly until you do something that I presume cancels the menu. It seems like we should be able to solve this by either programatically cancelling the menu, or somehow disable that menu in the first place. I don't yet know how to do either.

There are a few things we could try in this msdn doc to destroy the menu, but there might be a cleaner solution, perhaps with some window style?

richardeakin avatar May 26 '17 22:05 richardeakin

I've pushed a pull request fixing this. We need to be handling command SC_KEYMENU in WM_SYSCOMMAND message.

luksladky avatar Apr 10 '20 13:04 luksladky

same for me, also with F10 key!

brucelane avatar Apr 10 '20 13:04 brucelane

Should be fixed in this commit: https://github.com/cinder/Cinder/commit/adcd158eb80b76876ecff66669c44e5fba9543dd

Let's close the issue.

luksladky avatar Jul 28 '20 13:07 luksladky