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?

Avatar

Avatar
Validate 1
Level 2
Brian3_14
Level 2

Likes

3 likes

Total Posts

61 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
Brian3_14
Level 2

Likes

3 likes

Total Posts

61 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
Brian3_14
Level 2

26-05-2016

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

Accepted Solutions (0)

Answers (0)