diff --git a/components/ItemGrid.brs b/components/ItemGrid.brs index 12a7e187..5fc0c362 100644 --- a/components/ItemGrid.brs +++ b/components/ItemGrid.brs @@ -87,9 +87,6 @@ function onKeyEvent(key as string, press as boolean) as boolean if key = "down" and (m.top.itemFocused + 1) = m.top.content.getChildCount() m.top.escapeButton = "down" return true - else if key = "options" - m.top.escapeButton = "options" - return true end if return false diff --git a/components/JFGroup.brs b/components/JFGroup.brs index 8b96ba51..080f7151 100644 --- a/components/JFGroup.brs +++ b/components/JFGroup.brs @@ -4,10 +4,5 @@ end sub function onKeyEvent(key as string, press as boolean) as boolean if not press then return false - if key = "back" - m.top.backPressed = true - return true - end if - return false end function diff --git a/components/JFMessageDialog.brs b/components/JFMessageDialog.brs new file mode 100644 index 00000000..bdf525ee --- /dev/null +++ b/components/JFMessageDialog.brs @@ -0,0 +1,11 @@ +sub init() +end sub + +function onKeyEvent(key as string, press as boolean) as boolean + if key = "OK" + m.top.close = true + return true + end if + + return false +end function diff --git a/components/JFMessageDialog.xml b/components/JFMessageDialog.xml new file mode 100644 index 00000000..c58efc52 --- /dev/null +++ b/components/JFMessageDialog.xml @@ -0,0 +1,4 @@ + + +