From 558ff08be6951579d134aca37232af1f7a532d6c Mon Sep 17 00:00:00 2001 From: Jeremy Thurgood Date: Tue, 13 May 2014 20:01:14 +0200 Subject: [PATCH] Only change mode after performing action. --- naja/widgets/info_area.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/naja/widgets/info_area.py b/naja/widgets/info_area.py index 317dfc6..58068d7 100644 --- a/naja/widgets/info_area.py +++ b/naja/widgets/info_area.py @@ -83,9 +83,9 @@ class InfoAreaWidget(Widget): return super(InfoAreaWidget, self).handle_event(ev) if ev.type == pgl.KEYDOWN: if ev.key in (pgl.K_RETURN, pgl.K_KP_ENTER): - self.state.gameboard.change_mode() self.card.actions[self.chosen].perform_action( self.state.gameboard, self.card) + self.state.gameboard.change_mode() InvalidateTheWorld.post() return True if ev.key in (pgl.K_UP, pgl.K_w): -- 2.34.1