Skip to content

Commit

Permalink
(experimental) hold ctrl key when clicking + action to add 10 rows at…
Browse files Browse the repository at this point in the history
… once in rolltable
  • Loading branch information
Daimakaicho committed Jul 15, 2021
1 parent da28b53 commit 382dde5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/better-table-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ export class BetterRT {

newHeader.find("a.create-result")[0].onclick = async (event) => {
event.preventDefault();
if (!game.keyboard.isCtrl()) {
if (!game.keyboard.isCtrl(event)) {
await rollTableConfig._onCreateResult(event);
} else {
for (let i; i < 10; i++)
for (let i=0; i < 10; i++) {
await rollTableConfig._onCreateResult(event);
}
}
};

Expand Down

0 comments on commit 382dde5

Please sign in to comment.