aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Weigelt2012-03-26 05:07:29 (EDT)
committerMichael Jastram2012-04-05 05:48:07 (EDT)
commit86b7158c0a9a59833e1b051c141af65fed037aec (patch)
treea6d71e56cf6ed558face39f6a867f5cc92f12d86
parent93f2c97d24ef7135b155ed35994d50e5fbf7f3aa (diff)
downloadorg.eclipse.rmf-86b7158c0a9a59833e1b051c141af65fed037aec.zip
org.eclipse.rmf-86b7158c0a9a59833e1b051c141af65fed037aec.tar.gz
org.eclipse.rmf-86b7158c0a9a59833e1b051c141af65fed037aec.tar.bz2
Fixes #376157 by external contributor
handle ctrl-enter the same way ctrl-return is handled in AgileGridViewer
-rw-r--r--org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/agilegrid/ProrAgileGridViewer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/agilegrid/ProrAgileGridViewer.java b/org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/agilegrid/ProrAgileGridViewer.java
index 4abf553..263cc7d 100644
--- a/org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/agilegrid/ProrAgileGridViewer.java
+++ b/org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/agilegrid/ProrAgileGridViewer.java
@@ -134,7 +134,7 @@ public class ProrAgileGridViewer extends Viewer {
@Override
public void keyPressed(KeyEvent e) {
- if (e.keyCode == 13 && e.stateMask == SWT.CTRL) {
+ if (e.stateMask == SWT.CTRL && (e.keyCode == SWT.CR || e.keyCode == SWT.KEYPAD_CR) ) {
e.doit = false;
if (selection.isEmpty()) {
return;