Index: /CKEditor/trunk/CHANGES.html
===================================================================
--- /CKEditor/trunk/CHANGES.html	(revision 5444)
+++ /CKEditor/trunk/CHANGES.html	(revision 5445)
@@ -67,5 +67,5 @@
 		<li><a href="http://dev.fckeditor.net/ticket/5578">#5578</a> : Add flash fake element align property when switch mode (source to wysiwyg).</li>
 		<li><a href="http://dev.fckeditor.net/ticket/5577">#5577</a> : Update delete column behavior when choose mutiple cells in the same column.</li>
-		<li><a href="http://dev.fckeditor.net/ticket/5629">#5629</a> : Delete table column behavior update.</li>
+		<li><a href="http://dev.fckeditor.net/ticket/5577">#5512</a> : Open context menu with SHIFT+F10 doesn't get correct editor selection.</li>
 	</ul>
 	<h3>
Index: /CKEditor/trunk/_source/plugins/contextmenu/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/contextmenu/plugin.js	(revision 5444)
+++ /CKEditor/trunk/_source/plugins/contextmenu/plugin.js	(revision 5445)
@@ -209,11 +209,4 @@
 						return;
 
-					// Selection will be unavailable after context menu shows up
-					// in IE, lock it now.
-					if ( CKEDITOR.env.ie )
-					{
-						var selection = this.editor.getSelection();
-						selection && selection.lock();
-					}
 
 					// Cancel the browser context menu.
@@ -258,4 +251,13 @@
 		{
 			this.editor.focus();
+
+			// Selection will be unavailable after context menu shows up
+			// in IE, lock it now.
+			if ( CKEDITOR.env.ie )
+			{
+				var selection = this.editor.getSelection();
+				selection && selection.lock();
+			}
+
 			this._.onMenu( offsetParent || CKEDITOR.document.getDocumentElement(), corner, offsetX || 0, offsetY || 0 );
 		}
