Skip to content
Browse files

Merge pull request #12 from valyo/2.5.x

Bug 3193 again - another fix related to tab completion
  • Loading branch information...
2 parents 5d5a14f + 84e7ae0 commit 73f6f1c36186d3b3bb3df1fbe7ede72320fb2f27 @goglepox goglepox committed Jun 5, 2012
View
8 ...net.bioclipse.scripting.ui/src/net/bioclipse/scripting/ui/views/ScriptingConsoleView.java
@@ -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 73f6f1c

Please sign in to comment.
Something went wrong with that request. Please try again.