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

@@ -6,6 +6,9 @@ Date format : day/month/year
> - `foundry-version`: Stick to the major version of FoundryVTT. > - `foundry-version`: Stick to the major version of FoundryVTT.
> - `system-version`: System functionalities and Fixes. > - `system-version`: System functionalities and Fixes.
## 1.13.2 - ??/09/2025 - Fixes
- Sheet : Fix for pressing key "Enter" in input trigger "no active Encounter..." message.
## 1.13.1 - 21/09/2025 - Conditions & Fixes ## 1.13.1 - 21/09/2025 - Conditions & Fixes
- Fix for Clicking on items doesn't show item window (#65 Thx to Litasa) - Fix for Clicking on items doesn't show item window (#65 Thx to Litasa)
- Fix for fade configuration (#66) - Fix for fade configuration (#66)

View File

@@ -694,6 +694,12 @@ export class BaseCharacterSheetL5r5e extends BaseSheetL5r5e {
_openDicePickerForSkill(event) { _openDicePickerForSkill(event) {
event.preventDefault(); event.preventDefault();
event.stopPropagation(); 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 li = $(event.currentTarget);
const weapon = this._getWeaponInfos(li.data("weapon-id") || null); const weapon = this._getWeaponInfos(li.data("weapon-id") || null);
const isInitiative = li.data("initiative") || false; const isInitiative = li.data("initiative") || false;