ComponentPeer::windowIgnoresKeyPresses skips mouseEnter & mouseExit as well ?


#1

When calling addToDesktop with ComponentPeer::windowIgnoresKeyPresses as an argument the component is also not receiving mouseEnter and mouseExit events. Is this behaviour meant or is it something to be filed as 'problems to solve' ?

aComponent->addToDesktop( juce::ComponentPeer::windowHasDropShadow | juce::ComponentPeer::windowIgnoresKeyPresses  );

Jankoen

 

I found out on OSX, not shure if this is the same under windows.


#2

I think you're misinterpreting something there - it seems to make no difference to mouse-events when I tried adding that flag to windows in the juce demo.


#3

very possible.

 

I'm doing some native stuff to the window which might break you doing some native stuff to the window, its occuring in a popup kinda situation where a mouse press (in a juce component ) opens another window via addToDesktop.

 

Anyway, I'm happy at the moment,  since there is no issue around this at the moment.

 

Thanks for the time

Jankoen