How to do Resizable and KioskMode Plugin

Hello everyone, right now I have a plugin that needs to be fully resizable and also needs to be able to get into full-screen mode.

I got the first part working by making the PluginEditor resizable, and adding a fixed aspect ratio.

But is the second part which is driving me crazy, I’ve seen that people talk about using KioskMode but when using it I encounter two issues:

  • I don’t know when should I add the component to desktop so that I can enable KioskMode (Right know, I call addtodesktop() each time the full-screen button is pressed)

  • When the plugin is on KioskMode I cannot use the ESC key to get out from KioskMode since it seems that the KeyboardFocus of the component is lost.

Thank you.