keyboard accelerators
[nikiroo-utils.git] / src / jexer / TCommand.java
index 62ff2bec9e22f37e09ef149c3a1ffab553e650f7..bacc6f15050294abb5b2f298d17e087afd6f43d3 100644 (file)
@@ -158,6 +158,16 @@ public class TCommand {
         return (type == that.type);
     }
 
+    /**
+     * Hashcode uses all fields in equals().
+     *
+     * @return the hash
+     */
+    @Override
+    public int hashCode() {
+        return type;
+    }
+
     public static final TCommand cmAbort      = new TCommand(ABORT);
     public static final TCommand cmExit       = new TCommand(EXIT);
     public static final TCommand cmQuit       = new TCommand(EXIT);