Switch form focus to focusout, this allows the focus to stay if the cursor leaves the table, though it will commit the change and refocus

This commit is contained in:
Justin F. Hallett 2014-09-08 16:31:46 -06:00
parent d82f912319
commit d0ed9d1fa7

View File

@ -101,7 +101,7 @@
if ( c.$table.data('contentFocused') ) { if ( c.$table.data('contentFocused') ) {
// change to "true" instead of element to allow focusout to process // change to "true" instead of element to allow focusout to process
c.$table.data( 'contentFocused', true ); c.$table.data( 'contentFocused', true );
$(':focus').trigger('blur'); $(':focus').trigger('focusout');
} }
}) })
.on('focus.tseditable', '[contenteditable]', function(e){ .on('focus.tseditable', '[contenteditable]', function(e){