Fix for #1380415 (toshihiro)
authoraxelcl <axelcl>
Sat, 24 Mar 2007 15:22:22 +0000 (15:22 +0000)
committeraxelcl <axelcl>
Sat, 24 Mar 2007 15:22:22 +0000 (15:22 +0000)
net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/PHPUnitEditor.java

index c01fc83..15c174f 100644 (file)
@@ -932,6 +932,18 @@ public class PHPUnitEditor extends PHPEditor { // implements
                                else
                                        return new ExitFlags(LinkedPositionUI.COMMIT, true);
                        }
+                       // Fix for #1380415 (toshihiro) start 
+                   switch (event.keyCode) {
+                   case SWT.ARROW_UP:
+                   case SWT.ARROW_DOWN:
+                     return new ExitFlags(LinkedPositionUI.COMMIT, true);
+                   case SWT.ARROW_LEFT:
+                   case SWT.ARROW_RIGHT:
+                      if (!manager.anyPositionIncludes(offset, length))
+                        return new ExitFlags(LinkedPositionUI.COMMIT, true);
+                      break;
+                   }
+                   // #1380415 end 
                        switch (event.character) {
                        case '\b':
                                if (manager.getFirstPosition().length == 0)