# HG changeset patch # User Adrianna PiƄska # Date 1259174720 0 # Node ID 6974048bf04aa0264e1ec2c1bd829e8d5046128e # Parent c1439f6705a24689402934201c0a0acb31672682 middle-click deselects chickens but not the tool. diff -r c1439f6705a2 -r 6974048bf04a gamelib/gameboard.py --- a/gamelib/gameboard.py Wed Nov 25 18:44:23 2009 +0000 +++ b/gamelib/gameboard.py Wed Nov 25 18:45:20 2009 +0000 @@ -270,6 +270,8 @@ if e.button == 3: # Right button self.set_selected_tool(None, None) self.toolbar.clear_tool() + elif e.button == 2: # Middle button + self.unselect_all() elif e.button != 1: # Left button return if self.selected_tool == constants.TOOL_SELL_CHICKEN: