datatables.net-keytable
Advanced tools
Comparing version 2.6.0 to 2.6.1
@@ -1,2 +0,2 @@ | ||
/*! KeyTable 2.6.0 | ||
/*! KeyTable 2.6.1 | ||
* ©2009-2021 SpryMedia Ltd - datatables.net/license | ||
@@ -8,3 +8,3 @@ */ | ||
* @description Spreadsheet like keyboard navigation for DataTables | ||
* @version 2.6.0 | ||
* @version 2.6.1 | ||
* @file dataTables.keyTable.js | ||
@@ -528,3 +528,3 @@ * @author SpryMedia Ltd (www.sprymedia.co.uk) | ||
// DataTables draw event | ||
if (orig.type === 'draw') { | ||
if (orig && orig.type === 'draw') { | ||
return; | ||
@@ -556,8 +556,10 @@ } | ||
orig.stopPropagation(); | ||
if ( orig ) { | ||
orig.stopPropagation(); | ||
// Return key should do nothing - for textareas it would empty the | ||
// contents | ||
if ( key === 13 ) { | ||
orig.preventDefault(); | ||
// Return key should do nothing - for textareas it would empty the | ||
// contents | ||
if ( key === 13 ) { | ||
orig.preventDefault(); | ||
} | ||
} | ||
@@ -610,2 +612,3 @@ | ||
if (that.s.returnSubmit) { | ||
that.s.returnSubmit = false; | ||
that._emitEvent( 'key-return-submit', [dt, editCell] ); | ||
@@ -1214,3 +1217,3 @@ } | ||
KeyTable.version = "2.6.0"; | ||
KeyTable.version = "2.6.1"; | ||
@@ -1255,3 +1258,3 @@ | ||
DataTable.Api.register( 'keys.enabled()', function ( opts ) { | ||
let ctx = this.context; | ||
var ctx = this.context; | ||
@@ -1258,0 +1261,0 @@ if (ctx.length) { |
{ | ||
"name": "datatables.net-keytable", | ||
"version": "2.6.0", | ||
"version": "2.6.1", | ||
"description": "KeyTable for DataTables ", | ||
@@ -5,0 +5,0 @@ "files": [ |
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
46564
1147
1