diff --git a/components/JFScene.brs b/components/JFScene.brs index 77bac9ff..a78c908d 100644 --- a/components/JFScene.brs +++ b/components/JFScene.brs @@ -7,10 +7,16 @@ function onKeyEvent(key as string, press as boolean) as boolean if not press then return false if key = "back" - m.top.backPressed = true + m.global.groupStack.callFunc("pop") return true else if key = "options" - m.top.optionsPressed = true + group = m.global.groupStack.callFunc("peek") + if group.optionsAvailable + group.lastFocus = group.focusedChild + panel = group.findNode("options") + panel.visible = true + panel.findNode("panelList").setFocus(true) + end if return true end if diff --git a/components/JFScene.xml b/components/JFScene.xml index 1b252cbc..3bf905da 100644 --- a/components/JFScene.xml +++ b/components/JFScene.xml @@ -1,8 +1,10 @@ + + + - - +