[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: SWT constant for space key
|
- From: Friederich Kupzog <friederich@xxxxxxxxx>
- Date: Tue, 29 Nov 2005 14:24:23 +0100
- Newsgroups: eclipse.platform.swt
- Organization: Kupzog Elektronik&Software
- User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
Hi,
the ASCII code for space is 32. Or use char == ' '.
Regards,
Friederich
Erel wrote:
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
--
Friederich Kupzog
Elektronik & Software
Neusser Str. 5-7
50670 Köln
Tel 0241 160696-1
Fax 0221 726670
www.kupzog.de/fkmk