Merge pull request #112 from cuu/master

bug fix,keyboard
This commit is contained in:
GNU 2018-10-11 03:16:01 +08:00 committed by GitHub
commit f586418ecd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -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):

View File

@ -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()