From c30aee6b3c088bb58b7afc3d459d35d0cb59d8d9 Mon Sep 17 00:00:00 2001 From: cuu Date: Thu, 11 Oct 2018 03:12:02 +0800 Subject: [PATCH] bug fix,keyboard --- Menu/GameShell/10_Settings/Wifi/wifi_list.py | 4 ++++ sys.py/UI/keyboard.py | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Menu/GameShell/10_Settings/Wifi/wifi_list.py b/Menu/GameShell/10_Settings/Wifi/wifi_list.py index b6dbf05..2686611 100644 --- a/Menu/GameShell/10_Settings/Wifi/wifi_list.py +++ b/Menu/GameShell/10_Settings/Wifi/wifi_list.py @@ -604,6 +604,10 @@ class WifiList(Page): self.ReturnToUpLevelPage() self._Screen.Draw() self._Screen.SwapAndShow() + + def OnReturnBackCb(self): + password_inputed = "".join(myvars.PasswordPage._Textarea._MyWords) + self.ConfigWireless(password_inputed) def KeyDown(self,event): diff --git a/sys.py/UI/keyboard.py b/sys.py/UI/keyboard.py index 98ba877..31cd9f0 100644 --- a/sys.py/UI/keyboard.py +++ b/sys.py/UI/keyboard.py @@ -317,8 +317,7 @@ class Keyboard(Page): print("".join(self._Textarea._MyWords)) self.ReturnToUpLevelPage() self._Screen.SwapAndShow() - ## config and connect now - myvars.ScanPage.ConfigWireless( "".join(self._Textarea._MyWords)) + #Uplevel page invokes OnReturnBackCb,eg: ConfigWireless if event.key == CurKeys["A"]: self._Textarea.RemoveFromLastText()