Skip to content

Commit

Permalink
use configured keys to fast forward
Browse files Browse the repository at this point in the history
  • Loading branch information
kaelad02 committed Sep 17, 2024
1 parent 0632296 commit 7bc826b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/rollers/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,9 @@ export default class CoreRollerHooks {
const isFF = !!(
fastForward ||
!configure ||
event?.shiftKey ||
event?.altKey ||
event?.ctrlKey ||
event?.metaKey
dnd5e.utils.areKeysPressed(event, "skipDialogNormal") ||
dnd5e.utils.areKeysPressed(event, "skipDialogAdvantage") ||
dnd5e.utils.areKeysPressed(event, "skipDialogDisadvantage")
);
if (isFF) debug("fast-forwarding the roll, stop processing");
return isFF;
Expand Down

0 comments on commit 7bc826b

Please sign in to comment.