From: Jeremy Thurgood Date: Tue, 13 May 2014 18:01:14 +0000 (+0200) Subject: Only change mode after performing action. X-Git-Tag: 0.1~331 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=558ff08be6951579d134aca37232af1f7a532d6c;p=naja.git Only change mode after performing action. --- 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):