Permalink
Browse files

Bug 3193 again - another fix related to tab completion

  • Loading branch information...
1 parent b272ebb commit 84e7ae02f64cff24e651e51355eec149f7bd97fa @valyo valyo committed Jun 4, 2012
@@ -209,7 +209,13 @@ public void keyReleased(KeyEvent _) { }
input = new Text(parent, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL);
input.setFont(JFaceResources.getTextFont());
input.addKeyListener( new KeyListener() {
- public void keyPressed(KeyEvent e) { handleKey(e); }
+ public void keyPressed(KeyEvent e) {
+ handleKey(e);
+ if (e.keyCode == SWT.TAB) {
+ e.doit = false;
+ tabComplete();
+ }
+ }
public void keyReleased(KeyEvent _) { }
});
input.addTraverseListener( new TraverseListener() {

0 comments on commit 84e7ae0

Please sign in to comment.