def METHOD_NAME(e):
    global currentButton
    code = e.get_code()
    obj = e.get_target_obj()
    if code == lv.EVENT.CLICKED or code == lv.EVENT.LONG_PRESSED_REPEAT:
        if currentButton == None:
            return
        currentButton.move_foreground()
        currentButton.scroll_to_view(lv.ANIM.ON)