-.v-theme-version:after {content:"6_5_4_dev-20110324";}
-.v-theme-version-6_5_4_dev-20110324 {display: none;}
+.v-theme-version:after {content:"6_5_5_dev-20110406";}
+.v-theme-version-6_5_5_dev-20110406 {display: none;}
/* Automatically compiled css file from subdirectories. */
.v-absolutelayout-wrapper {
background: transparent url(common/img/sprites.png) no-repeat 5px -37px;
padding: 1px 0;
}
+.v-tree-node:focus {
+ outline: none;
+}
.v-tree-node-expanded {
background-position: -5px -10px;
}
* Also ensure that the Tree itself is also gains focus (TreeNodes
* focus is kind of faked).
*/
- if (BrowserInfo.get().isOpera()) {
- /*
- * focusing the tree in Opera would scroll long trees up on
- * clicks
- */
- getElement().focus();
- } else if (!BrowserInfo.get().isIE()) {
- focus();
- } // else if IE: NOP, IE will give the focus to Tree anyways
+ // if (BrowserInfo.get().isOpera()) {
+ /*
+ * focusing the tree in Opera would scroll long trees up on clicks
+ */
+ // getElement().focus();
+ // } else if (!BrowserInfo.get().isIE()) {
+ // focus();
+ // } // else if IE: NOP, IE will give the focus to Tree anyways
ScheduledCommand command = new ScheduledCommand() {
public void execute() {
* previously modified field may contain dirty variables.
*/
if (!treeHasFocus) {
- focus();
+ if (focusedNode == null) {
+ getNodeByKey(key).setFocused(true);
+ } else {
+ focusedNode.setFocused(true);
+ }
+ // focus();
}
final MouseEventDetails details = new MouseEventDetails(evt);
ScheduledCommand command = new ScheduledCommand() {
DOM.appendChild(getElement(), ie6compatnode);
DOM.sinkEvents(ie6compatnode, Event.ONCLICK);
- } else if (BrowserInfo.get().isOpera()) {
- /*
- * We need to focus the TreeNode itself to get keyboard
- * navigation to work in opera at some level. Actually focusing
- * individual TreeNodes would most likely be better option for
- * all browsers, I don't dare to to this at bugfix release. MT.
- */
- getElement().setTabIndex(-1);
- }
+ } // else if (BrowserInfo.get().isOpera()) {
+ /*
+ * We need to focus the TreeNode itself to get keyboard navigation
+ * to work in opera at some level. Actually focusing individual
+ * TreeNodes would most likely be better option for all browsers, I
+ * don't dare to to this at bugfix release. MT.
+ */
+ getElement().setTabIndex(-1);
+ // }
nodeCaptionDiv = DOM.createDiv();
DOM.setElementProperty(nodeCaptionDiv, "className", CLASSNAME
ie6compatnode.addClassName(CLASSNAME_FOCUSED);
}
this.focused = focused;
+ getElement().focus();
+ treeHasFocus = true;
} else if (this.focused && !focused) {
nodeCaptionDiv.removeClassName(CLASSNAME_FOCUSED);
if (BrowserInfo.get().isIE6()) {
ie6compatnode.removeClassName(CLASSNAME_FOCUSED);
}
this.focused = focused;
+ treeHasFocus = false;
}
}