Skip to content

Commit

Permalink
Fix shift-delete behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Nov 27, 2014
1 parent 5fbf480 commit 5a02568
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion imp/js/dimpbase.js
Expand Up @@ -2565,7 +2565,13 @@ var DimpBase = {
if (!this.viewport.getMetaData('nodelete')) {
r = sel.get('dataob');
if (e.shiftKey) {
this.moveSelected((r.last().VP_rownum == this.viewport.getMetaData('total_rows')) ? (r.first().VP_rownum - 1) : (r.last().VP_rownum + 1), true);
this.moveSelected(
(r.last().VP_rownum == this.viewport.getMetaData('total_rows'))
? (r.first().VP_rownum - 1)
: (r.last().VP_rownum + 1),
true,
true
);
}
this.deleteMsg({ vs: sel });
}
Expand Down

0 comments on commit 5a02568

Please sign in to comment.