changeset 528:04975aa3ec70

Alt also sets groups, because jerith has a weird OS setup.
author Jeremy Thurgood <firxen@gmail.com>
date Fri, 27 Nov 2009 19:56:08 +0000
parents f59cb047d08f
children 93eab01a1e57
files gamelib/gameboard.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/gameboard.py	Fri Nov 27 19:41:30 2009 +0000
+++ b/gamelib/gameboard.py	Fri Nov 27 19:56:08 2009 +0000
@@ -3,7 +3,7 @@
 import pygame
 from pygame.locals import MOUSEBUTTONDOWN, MOUSEMOTION, KEYDOWN, K_UP, K_DOWN, \
         K_LEFT, K_RIGHT, KMOD_SHIFT, K_0, K_1, K_2, K_3, K_4, K_5, K_6, K_7, \
-        K_8, K_9, KMOD_CTRL, KEYUP
+        K_8, K_9, KMOD_CTRL, KMOD_ALT, KEYUP
 from pgu import gui
 
 import tiles
@@ -827,7 +827,7 @@
         elif e.type == KEYDOWN and e.key in \
                 [K_0, K_1, K_2, K_3, K_4, K_5, K_6, K_7, K_8, K_9]:
             mods = pygame.key.get_mods()
-            if mods & KMOD_CTRL:
+            if (mods & KMOD_CTRL) or (mods & KMOD_ALT):
                 # store current selection
                 self.stored_selections[e.key] = self.selected_chickens[:]
             else: