Index: /CKEditor/trunk/CHANGES.html
===================================================================
--- /CKEditor/trunk/CHANGES.html	(revision 4164)
+++ /CKEditor/trunk/CHANGES.html	(revision 4165)
@@ -49,4 +49,5 @@
 		<li><a href="http://dev.fckeditor.net/ticket/4028">#4028</a> : Maximize control's tool tip was wrong once it is maximized.</li>
 		<li><a href="http://dev.fckeditor.net/ticket/4237">#4237</a> : ToolBar is chopped off in Safari browser 3.x.</li>
+		<li><a href="http://dev.fckeditor.net/ticket/4269">#4269</a> : "Esc" and "Enter" keystrokes were not handled when a dialogue box is opened which causes the form post automatically.</li>		
 	</ul>
 	<h3>
Index: /CKEditor/trunk/_source/plugins/dialog/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/dialog/plugin.js	(revision 4164)
+++ /CKEditor/trunk/_source/plugins/dialog/plugin.js	(revision 4165)
@@ -624,4 +624,8 @@
 				CKEDITOR.document.on( 'keydown', accessKeyDownHandler );
 				CKEDITOR.document.on( 'keyup', accessKeyUpHandler );
+
+				// Prevent some keys from bubbling up. (#4269)
+				for ( var event in { keyup :1, keydown :1, keypress :1 } )
+					CKEDITOR.document.on( event, preventKeyBubbling );
 			}
 			else
@@ -750,4 +754,9 @@
 				CKEDITOR.document.removeListener( 'keydown', accessKeyDownHandler );
 				CKEDITOR.document.removeListener( 'keyup', accessKeyUpHandler );
+				CKEDITOR.document.removeListener( 'keypress', accessKeyUpHandler );
+
+				// Remove bubbling-prevention handler. (#4269)
+				for ( var event in { keyup :1, keydown :1, keypress :1 } )
+					CKEDITOR.document.removeListener( event, preventKeyBubbling );
 
 				var editor = this._.editor;
@@ -1835,4 +1844,12 @@
 	var tabAccessKeyDown = function( dialog, key )
 	{
+	};
+
+	// ESC, ENTER
+	var preventKeyBubblingKeys = { 27 :1, 13 :1 };
+	var preventKeyBubbling = function( e )
+	{
+		if ( e.data.getKeystroke() in preventKeyBubblingKeys )
+			e.data.preventDefault( true );
 	};
 
