kivy: dismiss wizard dialog before calling go_back

This commit is contained in:
ThomasV
2020-12-09 19:10:51 +01:00
parent 1851ec962f
commit b6f63e1abf

View File

@@ -619,6 +619,7 @@ class WizardDialog(EventsDialog):
def on_keyboard(self, instance, key, keycode, codepoint, modifier):
if key == 27:
if self.wizard.can_go_back():
self.dismiss()
self.wizard.go_back()
else:
if not self.app.is_exit: