Moerill / Layer-Hotkeys

Module for FoundryVTT adding hotkeys for changing layers.
MIT License
1 stars 5 forks source link

No longer works in 0.8.6 #21

Open dineshm72 opened 3 years ago

dineshm72 commented 3 years ago

Tested with just Layer Hotkeys enabled, and none of the hotkeys work to switch to that layer any more after updating foundry to 0.8.6.

MagicSale commented 3 years ago

Same here (Foundry 0.8.8; Layer-Hotkeys 0.7.9). Anything new about that?

peterbn commented 3 years ago

Did some debugging. It appears that the layer naming convention have been changes in the canvas.getLayer call.

So, instead of, for example canvas.getLayer("sounds"), you now need to do canvas.getLayer("SoundsLayer")

Annoyingly, this hasn't been changed in the ui.controls.conrols array, so the control.layer value no longer matches.

This causes an error in line 91 of layer-hotkeys.js.