You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by pa...@apache.org on 2008/10/01 14:59:12 UTC
svn commit: r700756 -
/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/wizards/NewEntryObjectclassWizardPage.java
Author: pamarcelot
Date: Wed Oct 1 05:59:12 2008
New Revision: 700756
URL: http://svn.apache.org/viewvc?rev=700756&view=rev
Log:
Fix for DIRSTUDIO-408 (In the NewEntryWizard, the first selected object class on the left side should be added if the Enter key is hit in the text field).
Modified:
directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/wizards/NewEntryObjectclassWizardPage.java
Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/wizards/NewEntryObjectclassWizardPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/wizards/NewEntryObjectclassWizardPage.java?rev=700756&r1=700755&r2=700756&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/wizards/NewEntryObjectclassWizardPage.java (original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/wizards/NewEntryObjectclassWizardPage.java Wed Oct 1 05:59:12 2008
@@ -340,6 +340,10 @@
{
availableObjectClassesViewer.getTable().setFocus();
}
+ else if ( e.keyCode == SWT.CR || e.keyCode == SWT.KEYPAD_CR )
+ {
+ add( availableObjectClassesViewer.getSelection() );
+ }
}
} );
ControlDecoration availableObjectClassesInstantSearchDecoration = new ControlDecoration(