Ticket #7882: 7882_2.patch
File 7882_2.patch, 2.3 KB (added by , 13 years ago) |
---|
-
_source/plugins/menu/plugin.js
188 188 { 189 189 var menu = this._.subMenu, 190 190 item = this.items[ index ], 191 // Get the element representing the current item. 192 element = this._.panel.getBlock( this.id ).element.getDocument().getById( this.id + String( index ) ), 191 193 subItemDefs = item.getItems && item.getItems(); 192 194 193 // If this item has no subitems, we just hide the submenu, if 194 // available, and return back. 195 // If this item has no subitems, we just grab the focus, which will hide the submenu. 195 196 if ( !subItemDefs ) 196 197 { 197 this._.panel.hideChild();198 element.focus(); 198 199 return; 199 200 } 200 201 … … 225 226 } 226 227 } 227 228 228 // Get the element representing the current item.229 var element = this._.panel.getBlock( this.id ).element.getDocument().getById( this.id + String( index ) );230 231 229 // Show the submenu. 232 230 menu.show( element, 2 ); 233 231 } -
_source/plugins/floatpanel/plugin.js
166 166 if ( target.getName && target.getName() != 'iframe' ) 167 167 return; 168 168 169 if ( this.visible && !this._.activeChild && !isShowing)169 if ( this.visible && !this._.activeChild ) 170 170 { 171 171 // Panel close is caused by user's navigating away the focus, e.g. click outside the panel. 172 172 // DO NOT restore focus in this case. … … 180 180 { 181 181 this._.focused = true; 182 182 this.hideChild(); 183 this.allowBlur( true );184 183 }, 185 184 this ); 186 185 … … 310 309 CKEDITOR.tools.setTimeout( function() 311 310 { 312 311 iframe.$.contentWindow.focus(); 313 // We need this get fired manually because of unfired focus() function.314 312 this.allowBlur( true ); 315 313 }, 0, this); 316 314 }, CKEDITOR.env.air ? 200 : 0, this); … … 319 317 if ( this.onShow ) 320 318 this.onShow.call( this ); 321 319 322 isShowing = 0;323 320 }, 324 321 325 322 hide : function( returnFocus )