Index: trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java	(revision 5996)
+++ trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java	(revision 5997)
@@ -947,4 +947,5 @@
         public boolean editable = true;
         protected JosmComboBox combo;
+        public String length;
 
         public Combo() {
@@ -973,4 +974,7 @@
             AutoCompletingTextField tf = new AutoCompletingTextField();
             initAutoCompletionField(tf, key);
+            if (length != null && !length.isEmpty()) {
+                tf.setMaxChars(new Integer(length));
+            }
             AutoCompletionList acList = tf.getAutoCompletionList();
             if (acList != null) {
