Changeset 14509
- Timestamp:
- 07/18/08 09:59:42 (6 months ago)
- Files:
-
- 1 modified
-
dijit/trunk/InlineEditBox.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dijit/trunk/InlineEditBox.js
r14501 r14509 25 25 // dijit.Editor (for editing HTML) or a Slider (for adjusting a number). 26 26 // An edit widget must support the following API to be used: 27 // String getDisplayedValue() OR String getValue() 28 // void setDisplayedValue(String) OR void setValue(String) 29 // void focus() 27 // String getDisplayedValue() OR String getValue() 28 // void setDisplayedValue(String) OR void setValue(String) 29 // void focus() 30 // DOM-node focusNode = node containing editable text 30 31 // 31 32 // editing: Boolean … … 109 110 110 111 this.disabled = disabled; 111 dijit.setWaiState(this. focusNode || this.domNode, "disabled", disabled);112 dijit.setWaiState(this.domNode, "disabled", disabled); 112 113 }, 113 114 … … 304 305 // prevent Dialog from closing when the user just wants to revert the value in the edit widget), 305 306 // so this is the only way we can see the key press event. 306 if(dojo.isFunction(ew.onKeyPress)){ 307 this.connect(ew, "onKeyPress", "_onKeyPress"); 308 }else{ 309 this.connect(ew.focusNode || ew.domNode, "onkeypress", "_onKeyPress"); 310 } 307 this.connect(ew, "onKeyPress", "_onKeyPress"); 311 308 312 309 // priorityChange=false will prevent bogus onChange event