Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Northover2001-09-10 18:35:21 +0000
committerSteve Northover2001-09-10 18:35:21 +0000
commit5cdfbaba58d2cf343a1caf720e950b0905626f80 (patch)
tree29f80c0bbb3f5387286b826676e813ba73b10b75 /bundles
parent87fa603ddc95eb2209e0c9581e5e612d390492aa (diff)
downloadeclipse.platform.swt-5cdfbaba58d2cf343a1caf720e950b0905626f80.tar.gz
eclipse.platform.swt-5cdfbaba58d2cf343a1caf720e950b0905626f80.tar.xz
eclipse.platform.swt-5cdfbaba58d2cf343a1caf720e950b0905626f80.zip
*** empty log message ***
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/emulated/treetable/org/eclipse/swt/widgets/SelectableItemWidget.java14
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/emulated/treetable/org/eclipse/swt/widgets/Table.java3
2 files changed, 15 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/emulated/treetable/org/eclipse/swt/widgets/SelectableItemWidget.java b/bundles/org.eclipse.swt/Eclipse SWT/emulated/treetable/org/eclipse/swt/widgets/SelectableItemWidget.java
index 010e596927..74bbb36dee 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/emulated/treetable/org/eclipse/swt/widgets/SelectableItemWidget.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/emulated/treetable/org/eclipse/swt/widgets/SelectableItemWidget.java
@@ -700,6 +700,7 @@ void doPageUp(int keyMask) {
void doSpace(int keyMask) {
SelectableItem item = getLastFocus();
+ if (item == null) return;
int itemIndex = getVisibleIndex(item);
if (keyMask == SWT.NULL && item.isSelected() == false) { // do simple space select in SINGLE and MULTI mode
@@ -707,7 +708,7 @@ void doSpace(int keyMask) {
selectNotify(item);
return;
}
- if (isMultiSelect() == false || item == null) {
+ if (isMultiSelect() == false) {
return;
}
if (keyMask == SWT.CTRL) {
@@ -1149,6 +1150,16 @@ void handleEvents(Event event) {
break;
case SWT.FocusIn:
focusIn(event);
+ break;
+ case SWT.Traverse:
+ switch (event.detail) {
+ case SWT.TRAVERSE_ESCAPE:
+ case SWT.TRAVERSE_RETURN:
+ case SWT.TRAVERSE_TAB_NEXT:
+ case SWT.TRAVERSE_TAB_PREVIOUS:
+ event.doit = true;
+ break;
+ }
break;
}
}
@@ -1215,6 +1226,7 @@ void installListeners() {
addListener(SWT.KeyDown, listener);
addListener(SWT.FocusOut, listener);
addListener(SWT.FocusIn, listener);
+ addListener(SWT.Traverse, listener);
getVerticalBar().addListener(SWT.Selection, listener);
getHorizontalBar().addListener(SWT.Selection, listener);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/emulated/treetable/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/emulated/treetable/org/eclipse/swt/widgets/Table.java
index 84e6cfe3c0..aae8087750 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/emulated/treetable/org/eclipse/swt/widgets/Table.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/emulated/treetable/org/eclipse/swt/widgets/Table.java
@@ -1473,7 +1473,8 @@ void installListeners() {
removeListener(SWT.FocusIn, listener);
focusWindow.addListener(SWT.FocusOut, listener);
focusWindow.addListener(SWT.FocusIn, listener);
- focusWindow.addListener(SWT.KeyDown, listener);
+ focusWindow.addListener(SWT.KeyDown, listener);
+ focusWindow.addListener(SWT.Traverse, listener);
addListener(SWT.MouseMove, listener);
addListener(SWT.MouseDown, listener);

Back to the top