Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

Recognize end-user hitting escape key?

Brian3_14
Level 3
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.

Using:

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.

Thanks!

B

0 Replies