johnmarsden
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2017
04:06 PM
Scene Graph back button
Right now, the back button is exiting me out of my application. I'm displaying a modal by changing opacity on 2 groups but I want to use the back button to close it. It doesn't actually change the screen.. it just modifies the state. Can I catch the back button so it doesn't exit me out of the view? This is a pretty principal part of my application that I'm hoping won't be limited by auto functioning back button.
Or it's possible I have some legacy code in here.
So question is: Can I catch the back button for Scene Graph without it exiting my current screen?
Thanks!
Or it's possible I have some legacy code in here.
So question is: Can I catch the back button for Scene Graph without it exiting my current screen?
Thanks!
2 REPLIES 2
NB_
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2017
06:00 PM
Re: Scene Graph back button
Which Node has the input focus? See https://sdkdocs.roku.com/display/sdkdoc/ifSGNodeFocus
It would seem backExitsScene = true and nobody is handling the Back button before it bubbles up to the Scene.
Note also there is a simple way of displaying modal dialog by assigning it to the .dialog field of the Scene, then it handles the rest - incl. closing with Back.
It would seem backExitsScene = true and nobody is handling the Back button before it bubbles up to the Scene.
Note also there is a simple way of displaying modal dialog by assigning it to the .dialog field of the Scene, then it handles the rest - incl. closing with Back.
johnmarsden
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2017
07:58 AM
Re: Scene Graph back button
This is great to know. Thanks!
My modals are more like tooltips around the page, but your tip about generic modals is great.
My modals are more like tooltips around the page, but your tip about generic modals is great.