Fix for pressing key "Enter" in input trigger "no active Encounter..." message.

This commit is contained in:
Vlyan
2025-09-25 17:45:45 +02:00
parent e54a105222
commit 37b8956048
2 changed files with 9 additions and 0 deletions

View File

@@ -694,6 +694,12 @@ export class BaseCharacterSheetL5r5e extends BaseSheetL5r5e {
_openDicePickerForSkill(event) {
event.preventDefault();
event.stopPropagation();
// In Fvtt v13+ "Enter" trigger that mouse event, we ignore that below
if (event.clientX === 0 && event.clientY === 0) {
return;
}
const li = $(event.currentTarget);
const weapon = this._getWeaponInfos(li.data("weapon-id") || null);
const isInitiative = li.data("initiative") || false;