includes/clientside/tinymce/utils/editable_selects.js
changeset 588 20484deb89cd
parent 395 fa4c5ecb7c9a
--- a/includes/clientside/tinymce/utils/editable_selects.js	Thu Jun 26 18:05:42 2008 -0400
+++ b/includes/clientside/tinymce/utils/editable_selects.js	Thu Jun 26 20:55:13 2008 -0400
@@ -1,5 +1,5 @@
 /**
- * $Id: editable_selects.js 520 2008-01-07 16:30:32Z spocke $
+ * $Id: editable_selects.js 867 2008-06-09 20:33:40Z spocke $
  *
  * Makes select boxes editable.
  *
@@ -39,6 +39,7 @@
 			se.style.display = 'none';
 			ne.focus();
 			ne.onblur = TinyMCE_EditableSelects.onBlurEditableSelectInput;
+			ne.onkeydown = TinyMCE_EditableSelects.onKeyDown;
 			TinyMCE_EditableSelects.editSelectElm = se;
 		}
 	},
@@ -57,5 +58,12 @@
 			se.parentNode.removeChild(se.previousSibling);
 			TinyMCE_EditableSelects.editSelectElm = null;
 		}
+	},
+
+	onKeyDown : function(e) {
+		e = e || window.event;
+
+		if (e.keyCode == 13)
+			TinyMCE_EditableSelects.onBlurEditableSelectInput();
 	}
 };