fix problem with wrong focus in name editor when editing name titlecache
authorKatja Luther <k.luther@bgbm.org>
Mon, 18 Jul 2016 11:28:07 +0000 (13:28 +0200)
committerKatja Luther <k.luther@bgbm.org>
Mon, 18 Jul 2016 11:28:58 +0000 (13:28 +0200)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/container/AbstractGroupedContainer.java

index 2806b80be20024832f40c6bbb8e363dcbde24a01..d86ccbda546d54b9399ed67b78c463351d7d226a 100644 (file)
@@ -900,7 +900,7 @@ abstract public class AbstractGroupedContainer<T extends TaxonBase> implements
                getNameViewer().getTextWidget().setFont(defaultFont);
 
                getNameViewer().getDocument().set(getEmptyTextPrompt());
-               placeCursor();
+       //      placeCursor();
        }
 
        /**
@@ -1123,21 +1123,11 @@ abstract public class AbstractGroupedContainer<T extends TaxonBase> implements
                                AbstractGroupedContainer.this.handleSplitText(text);
                        }
 
-                       @Override
-                       public void keyPressed(KeyEvent e) {
-                               // TODO Auto-generated method stub
-                               
-                       }
-
-                       @Override
-                       public void keyReleased(KeyEvent e) {
-                               // TODO Auto-generated method stub
-                               
-                       }
+                       
                };
 
                getNameViewer().getTextWidget().addVerifyListener(lineBreakListener);
-               getNameViewer().getTextWidget().addKeyListener(lineBreakListener);
+               //getNameViewer().getTextWidget().addKeyListener(lineBreakListener);
        }
 
        abstract class LabelEllipsisListener extends ControlAdapter {