Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.js |
— | — | @@ -304,7 +304,7 @@ |
305 | 305 | break; |
306 | 306 | // Intercept all tab events to provide consisten behavior across browsers |
307 | 307 | // Webkit browsers insert tab characters by default into the iframe rather than changing input focus |
308 | | - case 9: |
| 308 | + case 9: //tab |
309 | 309 | // if any modifier keys are pressed, allow the browser to do it's thing |
310 | 310 | if ( event.ctrlKey || event.altKey || event.shiftKey ) { |
311 | 311 | return true; |
— | — | @@ -321,6 +321,12 @@ |
322 | 322 | return false; |
323 | 323 | } |
324 | 324 | break; |
| 325 | + case 86: //v |
| 326 | + if ( event.ctrlKey ){ |
| 327 | + //paste, intercepted for IE |
| 328 | + context.evt.paste( event ); |
| 329 | + } |
| 330 | + break; |
325 | 331 | } |
326 | 332 | return true; |
327 | 333 | }, |
— | — | @@ -1290,10 +1296,10 @@ |
1291 | 1297 | .bind( 'paste', function( event ) { |
1292 | 1298 | return context.fn.trigger( 'paste', event ); |
1293 | 1299 | } ) |
1294 | | - .bind( 'keyup mouseup paste cut encapsulateSelection', function( event ) { |
| 1300 | + .bind( 'keyup paste mouseup cut encapsulateSelection', function( event ) { |
1295 | 1301 | return context.fn.trigger( 'change', event ); |
1296 | 1302 | } ) |
1297 | | - .delayedBind( 250, 'keyup mouseup paste cut encapsulateSelection', function( event ) { |
| 1303 | + .delayedBind( 250, 'keyup paste mouseup cut encapsulateSelection', function( event ) { |
1298 | 1304 | context.fn.trigger( 'delayedChange', event ); |
1299 | 1305 | } ); |
1300 | 1306 | } ); |