Index: /FCKeditor/trunk/editor/_source/classes/fckpanel.js
===================================================================
--- /FCKeditor/trunk/editor/_source/classes/fckpanel.js	(revision 1130)
+++ /FCKeditor/trunk/editor/_source/classes/fckpanel.js	(revision 1131)
@@ -164,14 +164,14 @@
 	else
 	{
+		// Do not fire OnBlur while the panel is opened.
+		if ( typeof( FCK.ToolbarSet.CurrentInstance.FocusManager ) != 'undefined' )
+			FCK.ToolbarSet.CurrentInstance.FocusManager.Lock() ;
+
+		if ( this.ParentPanel )
+			this.ParentPanel.Lock() ;
+
 		// Be sure we'll not have more than one Panel opened at the same time.
 		if ( FCKPanel._OpenedPanel )
 			FCKPanel._OpenedPanel.Hide() ;
-
-		// Do not fire OnBlur while the panel is opened.
-		if ( typeof( FCK.ToolbarSet.CurrentInstance.FocusManager ) != 'undefined' )
-			FCK.ToolbarSet.CurrentInstance.FocusManager.Lock() ;
-
-		if ( this.ParentPanel )
-			this.ParentPanel.Lock() ;
 
 		FCKDomTools.SetElementStyles( eMainNode,
@@ -271,5 +271,5 @@
 	else
 	{
-		if ( !this._IsOpened )
+		if ( !this._IsOpened || this._LockCounter > 0 )
 			return ;
 
