144 | | focused.on( 'blur', function( ev ) |
145 | | { |
146 | | if ( CKEDITOR.env.ie && !this.allowBlur() ) |
147 | | return; |
| 144 | // focused.on( 'blur', function( ev ) |
| 145 | // { |
| 146 | // if ( CKEDITOR.env.ie && !this.allowBlur() ) |
| 147 | // return; |
| 148 | // |
| 149 | // // As we are using capture to register the listener, |
| 150 | // // the blur event may get fired even when focusing |
| 151 | // // inside the window itself, so we must ensure the |
| 152 | // // target is out of it. |
| 153 | // var target = ev.data.getTarget(), |
| 154 | // targetWindow = target.getWindow && target.getWindow(); |
| 155 | // |
| 156 | // if ( targetWindow && targetWindow.equals( focused ) ) |
| 157 | // return; |
| 158 | // |
| 159 | // if ( this.visible && !this._.activeChild && !isShowing ) |
| 160 | // this.hide(); |
| 161 | // }, |
| 162 | // this ); |
149 | | // As we are using capture to register the listener, |
150 | | // the blur event may get fired even when focusing |
151 | | // inside the window itself, so we must ensure the |
152 | | // target is out of it. |
153 | | var target = ev.data.getTarget(), |
154 | | targetWindow = target.getWindow && target.getWindow(); |
155 | | |
156 | | if ( targetWindow && targetWindow.equals( focused ) ) |
157 | | return; |
158 | | |
159 | | if ( this.visible && !this._.activeChild && !isShowing ) |
160 | | this.hide(); |
161 | | }, |
162 | | this ); |
163 | | |