/** * Processes a key stroke while the info popup is up. * * @param e the verify event describing the key stroke */ private void contextInfoPopupProcessEvent(VerifyEvent e) { if (e.start != e.end && (e.text == null || e.text.length() == 0)) validateContextInformation(); }
/** * Processes a key stroke while the info popup is up. * * @param e the verify event describing the key stroke */ private void contextInfoPopupProcessEvent(VerifyEvent e) { if (e.start != e.end && (e.text == null || e.text.length() == 0)) validateContextInformation(); }
/** * Processes a key stroke while the info popup is up. * * @param e the verify event describing the key stroke * @return <code>true</code> if processing can be stopped */ private boolean contextInfoPopupKeyPressed(KeyEvent e) { char key= e.character; if (key == 0) { switch (e.keyCode) { case SWT.ARROW_LEFT: case SWT.ARROW_RIGHT: case SWT.ARROW_UP: case SWT.ARROW_DOWN: validateContextInformation(); break; default: if (e.keyCode != SWT.MOD1 && e.keyCode != SWT.MOD2 && e.keyCode != SWT.MOD3 && e.keyCode != SWT.MOD4) hideContextInfoPopup(); break; } } else if (key == SWT.ESC) { e.doit= false; hideContextInfoPopup(); } else { validateContextInformation(); } return true; }
/** * Processes a key stroke while the info popup is up. * * @param e the verify event describing the key stroke * @return <code>true</code> if processing can be stopped */ private boolean contextInfoPopupKeyPressed(KeyEvent e) { char key= e.character; if (key == 0) { switch (e.keyCode) { case SWT.ARROW_LEFT: case SWT.ARROW_RIGHT: case SWT.ARROW_UP: case SWT.ARROW_DOWN: validateContextInformation(); break; default: if (e.keyCode != SWT.MOD1 && e.keyCode != SWT.MOD2 && e.keyCode != SWT.MOD3 && e.keyCode != SWT.MOD4) hideContextInfoPopup(); break; } } else if (key == SWT.ESC) { e.doit= false; hideContextInfoPopup(); } else { validateContextInformation(); } return true; }