Example #1
0
        public bool HandleBackKey()
        {
            bool      res    = false;
            BlockBase notify = backKeyListener;

            // try the back key listener first
            if (notify != null)
            {
                res = notify.HasAction(Anchor.Back, ActionType.GotoBack);

                notify.FireAction(Anchor.Back);
            }

            // if not, try going back
            if (!res)
            {
                res = GoBack();

                if (!res && (ParentView != null))
                {
                    return(ParentView.HandleBackKey());
                }
            }

            return(res);
        }