directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r608105 - /directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/views/SearchView.java
Date Wed, 02 Jan 2008 13:54:01 GMT
Author: pamarcelot
Date: Wed Jan  2 05:53:56 2008
New Revision: 608105

URL: http://svn.apache.org/viewvc?rev=608105&view=rev
Log:
Replaces code for the detection of the "Keypad Return Key".

Modified:
    directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/views/SearchView.java

Modified: directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/views/SearchView.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/views/SearchView.java?rev=608105&r1=608104&r2=608105&view=diff
==============================================================================
--- directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/views/SearchView.java
(original)
+++ directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/views/SearchView.java
Wed Jan  2 05:53:56 2008
@@ -204,7 +204,7 @@
                 {
                     resultsTable.setFocus();
                 }
-                else if ( ( e.keyCode == Action.findKeyCode( "RETURN" ) ) || ( e.keyCode
== 16777296 /* The "Enter" Key at the bottom right of the keyboard */) ) //$NON-NLS-1$ 
+                else if ( ( e.keyCode == Action.findKeyCode( "RETURN" ) ) || ( e.keyCode
== SWT.KEYPAD_CR ) ) //$NON-NLS-1$ 
                 {
                     search();
                 }
@@ -521,8 +521,7 @@
         {
             public void keyPressed( KeyEvent e )
             {
-                if ( ( e.keyCode == Action.findKeyCode( "RETURN" ) )
-                    || ( e.keyCode == 16777296 /* The "Enter" Key at the bottom right of
the keyboard */) ) // return key
+                if ( ( e.keyCode == Action.findKeyCode( "RETURN" ) ) || ( e.keyCode == SWT.KEYPAD_CR
) ) // return key
                 {
                     openEditor();
                 }



Mime
View raw message