@Override public void focusLost(View v, Element el) { super.focusLost(v, el); if (v != focusedView) { return; } focusedView = null; GeoGebraFrameW.useDataParamBorder(getArticleElement(), frame); // if it is there in focusGained, why not put it here? this.getGlobalKeyDispatcher().setFocused(false); }
@Override public void focusGained(View v, Element el) { super.focusGained(v, el); focusedView = v; GeoGebraFrameW.useFocusedBorder(getArticleElement(), frame); // we really need to set it to true switch (v.getViewID()) { case App.VIEW_ALGEBRA: case App.VIEW_EUCLIDIAN: case App.VIEW_EUCLIDIAN2: this.getGlobalKeyDispatcher().setFocusedIfNotTab(); break; default: if (App.isView3D(v.getViewID()) || ((v.getViewID() >= App.VIEW_EUCLIDIAN_FOR_PLANE_START) && (v.getViewID() <= App.VIEW_EUCLIDIAN_FOR_PLANE_END))) { this.getGlobalKeyDispatcher().setFocusedIfNotTab(); } } }
@Override public void updateContentPane() { super.updateContentPane(); frame.setApplication(this); frame.refreshKeyboard(); }