From bb113e691547b7f091d045a5c3d2eb1f0263393a Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Thu, 28 Oct 2004 18:59:14 +0000 Subject: [PATCH] Only add the pause key combo if we're not robot testing. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3181 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../com/threerings/puzzle/util/PuzzleGameUtil.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/java/com/threerings/puzzle/util/PuzzleGameUtil.java b/src/java/com/threerings/puzzle/util/PuzzleGameUtil.java index 7ad8a833f..9508ecb9e 100644 --- a/src/java/com/threerings/puzzle/util/PuzzleGameUtil.java +++ b/src/java/com/threerings/puzzle/util/PuzzleGameUtil.java @@ -1,5 +1,5 @@ // -// $Id: PuzzleGameUtil.java,v 1.2 2004/08/27 02:20:33 mdb Exp $ +// $Id: PuzzleGameUtil.java,v 1.3 2004/10/28 18:59:14 mdb Exp $ // // Narya library - tools for developing networked games // Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved @@ -22,8 +22,10 @@ package com.threerings.puzzle.util; import java.awt.event.KeyEvent; + import com.threerings.util.KeyTranslatorImpl; import com.threerings.puzzle.client.PuzzleController; +import com.threerings.puzzle.client.PuzzlePanel; /** * Puzzle game related utilities. @@ -38,9 +40,11 @@ public class PuzzleGameUtil { KeyTranslatorImpl xlate = new KeyTranslatorImpl(); - // add the standard pause keys - xlate.addPressCommand( - KeyEvent.VK_P, PuzzleController.TOGGLE_CHATTING); + if (!PuzzlePanel.isRobotTesting()) { + // add the standard pause keys + xlate.addPressCommand( + KeyEvent.VK_P, PuzzleController.TOGGLE_CHATTING); + } return xlate; }