else if (e.keyCode == SWT.CR || e.keyCode == SWT.KEYPAD_CR) { this.iTransparency = srTransparency.getSelection(); if (fCurrent instanceof ColorDefinition && bTransparencyChanged) { ((ColorDefinition) fCurrent).setTransparency(this.iTransparency); } this.setFill(fCurrent); cmpDropDown.getShell().dispose(); }
    public void keyPressed(KeyEvent e)    {        if (cmpDropDown != null && !cmpDropDown.getShell().isDisposed())        {            if (e.keyCode == SWT.ESC)            {                cmpDropDown.getShell().dispose();            }        }    }