directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r700756 - /directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/wizards/NewEntryObjectclassWizardPage.java
Date Wed, 01 Oct 2008 12:59:12 GMT
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(



Mime
View raw message