From: axelcl Date: Sat, 24 Mar 2007 15:22:22 +0000 (+0000) Subject: Fix for #1380415 (toshihiro) X-Git-Url: http://secure.phpeclipse.com?hp=a4b10b350cf6deee8200b80cd2e4d4db52060a01 Fix for #1380415 (toshihiro) --- diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/PHPUnitEditor.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/PHPUnitEditor.java index c01fc83..15c174f 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/PHPUnitEditor.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/PHPUnitEditor.java @@ -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)