jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1212535 - /jmeter/trunk/src/core/org/apache/jmeter/gui/tree/JMeterTreeListener.java
Date Fri, 09 Dec 2011 17:39:05 GMT
Author: sebb
Date: Fri Dec  9 17:39:05 2011
New Revision: 1212535

URL: http://svn.apache.org/viewvc?rev=1212535&view=rev
Log:
Duplicate keypress action was being duplicated - no idea why

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/tree/JMeterTreeListener.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/tree/JMeterTreeListener.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/gui/tree/JMeterTreeListener.java?rev=1212535&r1=1212534&r2=1212535&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/gui/tree/JMeterTreeListener.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/gui/tree/JMeterTreeListener.java Fri Dec  9 17:39:05
2011
@@ -289,9 +289,12 @@ public class JMeterTreeListener implemen
         } else if (KeyStrokes.matches(e,KeyStrokes.CUT)) {
             ActionRouter actionRouter = ActionRouter.getInstance();
             actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.CUT));
-        } else if (KeyStrokes.matches(e,KeyStrokes.DUPLICATE)) {
-            ActionRouter actionRouter = ActionRouter.getInstance();
-            actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.DUPLICATE));
+// If the following lines are included, then pressing the DUPLICATE key results in calling
the action twice.
+// Without the code below, it still works.
+// Odd, the other keypresses do need to be handled above or they do not work at all...
+//        } else if (KeyStrokes.matches(e,KeyStrokes.DUPLICATE)) {
+//            ActionRouter actionRouter = ActionRouter.getInstance();
+//            actionRouter.doActionNow(new ActionEvent(e.getSource(), e.getID(), ActionNames.DUPLICATE));
         }
     }
 



Mime
View raw message