[API Review] RT-15314

John Hendrikx hjohn at xs4all.nl
Thu May 30 11:23:19 PDT 2013

Does "fullScreenWarning=false" imply also that the escape key would be 
free for normal use?  Removing the overlay is definitely good, but for 
apps that always run full-screen they shouldn't react to escape either.


On 29/05/2013 23:51, David Hill wrote:
> We have a request <https://javafx-jira.kenai.com/browse/RT-15314> to 
> allow non-sandboxed applications to disable the "ESC to exit full 
> screen" overly (and the associated ESC action to exit Full Screen).
> This is needed for "kiosk" style applications where Full Screen should 
> only be under programmatic control.
> I have several options to present, but all of them have an underlying 
> change, which is the addition of a system property to disable the 
> overlay behavior:
>     -Djavafx.fullScreenWarning=false
> API Option One: Add to Platform, providing for a system toggle that is 
> static.
>   public static void setFullScreenWarning(boolean warn)
>   public static boolean getFullScreenWarning()
> Note: I considered other options, like Application, but felt they were 
> poor fits. I am willing to listen to reason though.
> API Option Two: Add to Stage. This would be a per instance change, and 
> not a global toggle:
>   public void setFullScreenWarning(boolean warn)
>   public boolean getFullScreenWarning()
> API Option Three: don't change the API at this point, rely only on the 
> system properly to disable the overlay.
> Note: option three seems to be a reasonable solution for many of the 
> users of this functionality, because in a "kiosk" style application 
> you can control the launching anyway.

More information about the openjfx-dev mailing list