[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] SWT constant for space key
|
- From: e@xxxxx (Erel)
- Date: Tue, 29 Nov 2005 13:04:49 +0000 (UTC)
- Newsgroups: eclipse.platform.swt
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
I would like to display content assist information when the user presses
both the CTRL and SPACE keys.
the code looks the following:
sourceViewer.getControl().addKeyListener(new KeyAdapter() {
public void keyPressed(KeyEvent e) {
switch (e.keyCode) {
case // CTRL and SPACE :
assistant.showPossibleCompletions();
break;
default:
//ignore everything else
}
}
});
I couldn't find SWT.SPACE and how do I capture when the user presses both
keys?
thanks in advance