[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] SWT constant for space key

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