/*\r
-Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.\r
For licensing, see LICENSE.html or http://ckeditor.com/license\r
*/\r
\r
ev.preventDefault();\r
});\r
\r
+ var focusFn = CKEDITOR.tools.addFunction( function() { instance.onfocus && instance.onfocus(); } );\r
+\r
// For clean up\r
instance.keyDownFn = keyDownFn;\r
\r
\r
output.push(\r
' onkeydown="CKEDITOR.tools.callFunction( ', keyDownFn, ', event, this );"' +\r
- ' onclick="CKEDITOR.tools.callFunction(', clickFn, ', this); return false;">' +\r
+ ' onfocus="return CKEDITOR.tools.callFunction(', focusFn, ', event);" ' +\r
+ ( CKEDITOR.env.ie ? 'onclick="return false;" onmouseup' : 'onclick' ) + // #188\r
+ '="CKEDITOR.tools.callFunction(', clickFn, ', this); return false;">' +\r
'<span>' +\r
'<span id="' + id + '_text" class="cke_text cke_inline_label">' + this.label + '</span>' +\r
'</span>' +\r
panel.onEscape = function()\r
{\r
panel.hide();\r
- me.document.getById( 'cke_' + me.id ).getFirst().getNext().focus();\r
};\r
\r
list.onClick = function( value, marked )\r
else\r
me.setValue( '' );\r
\r
- panel.hide();\r
+ panel.hide( false );\r
};\r
\r
this._.panel = panel;\r