[openrtm-commit:00489] r224 - trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/ui/editors
openrtm @ openrtm.org
openrtm @ openrtm.org
2011年 12月 17日 (土) 13:13:05 JST
Author: sakamoto
Date: 2011-12-17 13:13:05 +0900 (Sat, 17 Dec 2011)
New Revision: 224
Modified:
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/ui/editors/AbstractEditorFormPage.java
Log:
Modified Tab control #2239
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/ui/editors/AbstractEditorFormPage.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/ui/editors/AbstractEditorFormPage.java 2011-12-17 03:59:17 UTC (rev 223)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/ui/editors/AbstractEditorFormPage.java 2011-12-17 04:13:05 UTC (rev 224)
@@ -29,6 +29,8 @@
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
+import org.eclipse.swt.events.TraverseEvent;
+import org.eclipse.swt.events.TraverseListener;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.Point;
@@ -213,6 +215,15 @@
}
final Text text = toolkit.createText(composite, "", style);
+ text.addTraverseListener(new TraverseListener() {
+
+ @Override
+ public void keyTraversed(TraverseEvent e) {
+ if( e.detail == SWT.TRAVERSE_TAB_NEXT || e.detail == SWT.TRAVERSE_TAB_PREVIOUS ) {
+ e.doit = true;
+ }
+ }
+ });
text.addKeyListener(new KeyListener() {
public void keyReleased(KeyEvent e) {
update();
openrtm-commit メーリングリストの案内