Kiosk mode with no mouse cursor


Hi folks, in my app I have a component that the user can put into kiosk mode, using a keyboard command (ctrl-f). This triggers:


When in kiosk mode, I don’t want to display the mouse cursor, so right before the above line, I also do:


But, since the keyboard is what put theComponent into kiosk mode, the mouse doesn’t disappear until I click it or move it. This mainly happens on OS X, but I’ve had it happen on Windows too. It seems that the mouse isn’t aware that there’s a new component under it. I tried calling the updateMouseCursor function, but it doesn’t seem to do anything. Any ideas?





The setMouseCursor method should already call that. (It’ll only work if the mouse is actually over your component though)