Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Weinand2001-09-06 15:23:05 +0000
committerAndre Weinand2001-09-06 15:23:05 +0000
commitac70b779cf6b3e29030247b8be2e80690e302513 (patch)
tree89fd951215d1ed03ff316aa788c886ad69a60d40
parent381e8b0015209cc7b1339aa6ef17c16bcc33b6df (diff)
downloadeclipse.platform.team-ac70b779cf6b3e29030247b8be2e80690e302513.tar.gz
eclipse.platform.team-ac70b779cf6b3e29030247b8be2e80690e302513.tar.xz
eclipse.platform.team-ac70b779cf6b3e29030247b8be2e80690e302513.zip
Changed Cntr-N/Cntl-P to Cntl-D/Cntl-Shift-D
-rw-r--r--bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareNavigator.java5
-rw-r--r--bundles/org.eclipse.compare/plugin.properties4
-rw-r--r--bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareNavigator.java5
-rw-r--r--bundles/org.eclipse.compare/plugins/org.eclipse.compare/plugin.properties4
4 files changed, 10 insertions, 8 deletions
diff --git a/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareNavigator.java b/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareNavigator.java
index 33296e75c..8130731b1 100644
--- a/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareNavigator.java
+++ b/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareNavigator.java
@@ -4,6 +4,7 @@
*/
package org.eclipse.compare.internal;
+import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.events.KeyAdapter;
import org.eclipse.swt.events.KeyEvent;
@@ -90,11 +91,11 @@ public class CompareNavigator {
}
public static void handleNavigationKeys(KeyEvent e) {
- if (e.character == 14 || e.character == 16) { // next
+ if (e.character == 4) { // Control-D
if (e.widget instanceof Control) {
CompareNavigator nav= findNavigator((Control)e.widget);
if (nav != null)
- nav.selectChange(e.character == 14);
+ nav.selectChange((e.stateMask & SWT.SHIFT) == 0);
}
}
}
diff --git a/bundles/org.eclipse.compare/plugin.properties b/bundles/org.eclipse.compare/plugin.properties
index 21c295450..e9c6b1580 100644
--- a/bundles/org.eclipse.compare/plugin.properties
+++ b/bundles/org.eclipse.compare/plugin.properties
@@ -65,11 +65,11 @@ action.IgnoreWhiteSpace.tooltip=Ignore White Space where Applicable
action.IgnoreWhiteSpace.image=etool16/ignorews_edit.gif
action.Next.label=Next Difference
-action.Next.tooltip=Go to Next Difference Ctrl+N
+action.Next.tooltip=Go to Next Difference Ctrl+D
action.Next.image=elcl16/next_nav.gif
action.Previous.label=Previous Difference
-action.Previous.tooltip=Go to Previous Difference Ctrl+P
+action.Previous.tooltip=Go to Previous Difference Ctrl+Shift+D
action.Previous.image=elcl16/prev_nav.gif
#
diff --git a/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareNavigator.java b/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareNavigator.java
index 33296e75c..8130731b1 100644
--- a/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareNavigator.java
+++ b/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareNavigator.java
@@ -4,6 +4,7 @@
*/
package org.eclipse.compare.internal;
+import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.events.KeyAdapter;
import org.eclipse.swt.events.KeyEvent;
@@ -90,11 +91,11 @@ public class CompareNavigator {
}
public static void handleNavigationKeys(KeyEvent e) {
- if (e.character == 14 || e.character == 16) { // next
+ if (e.character == 4) { // Control-D
if (e.widget instanceof Control) {
CompareNavigator nav= findNavigator((Control)e.widget);
if (nav != null)
- nav.selectChange(e.character == 14);
+ nav.selectChange((e.stateMask & SWT.SHIFT) == 0);
}
}
}
diff --git a/bundles/org.eclipse.compare/plugins/org.eclipse.compare/plugin.properties b/bundles/org.eclipse.compare/plugins/org.eclipse.compare/plugin.properties
index 21c295450..e9c6b1580 100644
--- a/bundles/org.eclipse.compare/plugins/org.eclipse.compare/plugin.properties
+++ b/bundles/org.eclipse.compare/plugins/org.eclipse.compare/plugin.properties
@@ -65,11 +65,11 @@ action.IgnoreWhiteSpace.tooltip=Ignore White Space where Applicable
action.IgnoreWhiteSpace.image=etool16/ignorews_edit.gif
action.Next.label=Next Difference
-action.Next.tooltip=Go to Next Difference Ctrl+N
+action.Next.tooltip=Go to Next Difference Ctrl+D
action.Next.image=elcl16/next_nav.gif
action.Previous.label=Previous Difference
-action.Previous.tooltip=Go to Previous Difference Ctrl+P
+action.Previous.tooltip=Go to Previous Difference Ctrl+Shift+D
action.Previous.image=elcl16/prev_nav.gif
#

Back to the top