diff --git a/osc_tui/mainForm.py b/osc_tui/mainForm.py index 631b86f..111c874 100644 --- a/osc_tui/mainForm.py +++ b/osc_tui/mainForm.py @@ -405,6 +405,16 @@ def switch_to_security_grid(form, _): MODE = "Security" form.reload() + def switch_to_nets(self, _): + global MODE + MODE = "Nets" + self.reload() + + def switch_to_keypairs(self, _): + global MODE + MODE = "Keypairs" + self.reload() + def set_up_handlers(self): super().set_up_handlers() self.add_handlers({"q": self.quit_key}) @@ -416,6 +426,8 @@ def set_up_handlers(self): self.add_handlers({"I": self.switch_to_instances}) self.add_handlers({"M": self.switch_to_images}) self.add_handlers({"S": self.switch_to_security_grid}) + self.add_handlers({"T": self.switch_to_nets}) + self.add_handlers({"K": self.switch_to_keypairs}) self.add_handlers({ "r" : self.key_reload, curses.KEY_F5 : self.key_reload