void (final KeyEvent e) { if (e.getKeyCode() == KeyEvent.VK_SHIFT) { if (e.getID() == KeyEvent.KEY_PRESSED) { if ((myCurrentProcessor != null && myCurrentProcessor.isDragActive()) || (PaletteToolWindowManager.getInstance(myEditor).getActiveItem(ComponentItem.class) != null && myCurrentProcessor != myInsertComponentProcessor)) { myEditor.setDesignTimeInsets(12); } } else { myEditor.setDesignTimeInsets(2); } } if (myCurrentProcessor != null) { myCurrentProcessor.processKeyEvent(e); } else if (e.getID() == KeyEvent.KEY_TYPED && Character.isLetterOrDigit(e.getKeyChar()) && (e.getModifiers() & (InputEvent.ALT_MASK | InputEvent.CTRL_MASK | InputEvent.META_MASK)) == 0) { final ArrayList<RadComponent> selection = FormEditingUtil.getAllSelectedComponents(myEditor); if (selection.size() > 0) { final RadComponent component = selection.get(0); final InplaceEditingLayer inplaceLayer = myEditor.getInplaceEditingLayer(); inplaceLayer.startInplaceEditing(component, component.getDefaultInplaceProperty(), component.getDefaultInplaceEditorBounds(), new InplaceContext(false, e.getKeyChar())); e.consume(); } } }