From 05cb0614594a8bed9a1c34e3ca587086f62febab Mon Sep 17 00:00:00 2001 From: axelcl Date: Sat, 24 Mar 2007 15:22:22 +0000 Subject: [PATCH] Fix for #1380415 (toshihiro) --- .../phpeclipse/phpeditor/PHPUnitEditor.java | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) 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) -- 1.7.1