Skip to content

override the onKeyEvent doesn't work #81

@Allan-Nava

Description

@Allan-Nava

I added in my ProfileViewLogic.brs


function onKeyEvent(key as String, press as Boolean) as Boolean
    handled = false
    ? "ShowChooseProfileView key= "; key; " press= "; press
    if key = "back" then
        print("onKeyEvent - back")
        handled = true
    end if 
    ? "handled "; handled
    return handled
end function 
'

but doesn't work and it calls 

SGDEX: View Manager runProcedure closeView
SGDEX: fire close for this View
SGDEX: Showing previous View
signinpage key= back press= false
ShowChooseProfileView key= back press= false
onKeyEvent - back
handled true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions