Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Recognize end-user hitting escape key?


Level 3

Hi all -

Created a toggle button to enter/exit out of full screen.

But if the end-user hits the "esc" key to exit full screen, the click event of the toggle button obviously doesn't fire.


if (app.fullscreen == false)

....in the layout ready event will work to identify if we are not in full screen and, if we are not in full screen, run the code to switch the button's caption and tool-tip values to their correct values.

But that only happens when the layout ready event fires.

Anyway to determine it earlier?

Just looks crappy to see the caption "exit full screen" on the toggle button when we're not in full screen anymore.



0 Replies