Skip to content

Commit

Permalink
Fix: Destroy wasn't correctly removing bound events (causing a memory…
Browse files Browse the repository at this point in the history
… leak)

Fix: Copy to clipboard condition

Merge pull request #35 from flare256/master
  • Loading branch information
Allan Jardine committed Oct 23, 2017
2 parents 16af4df + 8ba51a6 commit 547e4f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/dataTables.keyTable.js
Expand Up @@ -290,7 +290,7 @@ $.extend( KeyTable.prototype, {
dt.on( 'destroy.keyTable', function () {
dt.off( '.keyTable' );
$( dt.table().body() ).off( 'click.keyTable', 'th, td' );
$( document.body )
$( document )
.off( 'keydown.keyTable' )
.off( 'click.keyTable' );
} );
Expand Down Expand Up @@ -629,7 +629,7 @@ $.extend( KeyTable.prototype, {
return;
}

if ( e.ctrlKey && e.keyCode === 67 ) { // c
if ( e.ctrlKey && !e.altKey && e.keyCode === 67 ) { // c
this._clipboardCopy();
return;
}
Expand Down

0 comments on commit 547e4f2

Please sign in to comment.