' ********** Copyright 2016 Roku Corp.  All Rights Reserved. **********  

sub init()
    m.top.SetFocus(true)
End sub

function onKeyEvent(key as String, press as Boolean) as Boolean
  handled = false
  if press then
    if (key = "back") then
      handled = false
      print "Ignoring Back Key"
    else if (key = "OK") then
            m.warninglabel.visible="false"
            print "OK"
            handled = true
    end if
  end if
  return handled
end function
