From d89f523c5006552e6dc517e1866d5ae7a606dbfa Mon Sep 17 00:00:00 2001 From: hi80482 <66435094+hi80482@users.noreply.github.com> Date: Fri, 31 Jul 2020 20:45:34 +0800 Subject: [PATCH] Update __init__.py --- sys.py/UI/CommercialSoftwarePackage/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys.py/UI/CommercialSoftwarePackage/__init__.py b/sys.py/UI/CommercialSoftwarePackage/__init__.py index 7252984..6227a76 100644 --- a/sys.py/UI/CommercialSoftwarePackage/__init__.py +++ b/sys.py/UI/CommercialSoftwarePackage/__init__.py @@ -105,7 +105,8 @@ class NotFoundPage(Page): self._Board.SetAndBlitText(d) def KeyDown(self,event): - if event.key == CurKeys["A"] or event.key == CurKeys["Menu"]: + # if event.key == CurKeys["A"] or event.key == CurKeys["Menu"]: + if IsKeyMenuOrB(event.key): self.ReturnToUpLevelPage() self._Screen.Draw() self._Screen.SwapAndShow()