Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

override the onKeyEvent doesn't work #81

Open
Allan-Nava opened this issue Aug 27, 2021 · 0 comments
Open

override the onKeyEvent doesn't work #81

Allan-Nava opened this issue Aug 27, 2021 · 0 comments

Comments

@Allan-Nava
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant