Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tools.py
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2012-10-24 02:40:59 (GMT)
committer Gary Martin <gary@garycmartin.com>2012-10-24 02:40:59 (GMT)
commit5aa22891b07153d2b1df07ba3621d8d22e9ae252 (patch)
tree89ca7585a2d997d78932ecd838c4a31fce7552eb /tools.py
parent576a47a1d3c6b30c7f4e1e92ce3f92c05114e001 (diff)
Do not try and quit when the user presses the escape key (standard is ctrl-q).
Diffstat (limited to 'tools.py')
-rw-r--r--tools.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools.py b/tools.py
index 80b9a69..43cd950 100644
--- a/tools.py
+++ b/tools.py
@@ -29,7 +29,7 @@ class Tool(object):
def handleEvents(self,event):
handled = True
# default event handling
- if event.type == QUIT or (event.type == KEYDOWN and event.key == K_ESCAPE):
+ if event.type == QUIT:
# bye bye! Hope you had fun!
self.game.running = False
elif event.type == KEYDOWN: