@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(); } } }