built-in keyboard

This commit is contained in:
alfrix
2022-07-18 20:19:39 -03:00
committed by Alfredo Monclus
parent 0d8746d3e3
commit 9c2b52009a
11 changed files with 197 additions and 34 deletions

View File

@@ -351,7 +351,7 @@ class NetworkPanel(ScreenPanel):
self.labels['network_psk'].set_text('')
self.labels['network_psk'].set_hexpand(True)
self.labels['network_psk'].connect("activate", self.add_new_network, ssid, True)
self.labels['network_psk'].connect("focus-in-event", self._screen.show_keyboard)
self.labels['network_psk'].connect("focus-in-event", self._show_keyboard)
self.labels['network_psk'].grab_focus_without_selecting()
save = self._gtk.ButtonImage("sd", _("Save"), "color3")
@@ -374,6 +374,9 @@ class NetworkPanel(ScreenPanel):
self.content.show_all()
self.show_add = True
def _show_keyboard(self, widget=None, event=None):
self._screen.show_keyboard(entry=self.labels['network_psk'])
def update_all_networks(self):
for network in list(self.networks):
self.update_network_info(network)