Adds a keybind into the module that allows GMs to temporarily hide their cursor from everyone else (including other GMs) #24

Merged
Oliver merged 4 commits from feature/hide-cursor-temporarily into main 2025-12-19 03:05:18 +00:00
Showing only changes of commit f088cc474e - Show all commits

View file

@ -115,11 +115,6 @@ function renderControlsConfigHandler(_app, element) {
const keybindingList = element.querySelector(`section[data-group="${tabGroup}"][data-tab="${__ID__}"]`); const keybindingList = element.querySelector(`section[data-group="${tabGroup}"][data-tab="${__ID__}"]`);
const tabButton = element.querySelector(`button[data-group="${tabGroup}"][data-tab="${__ID__}"]`); const tabButton = element.querySelector(`button[data-group="${tabGroup}"][data-tab="${__ID__}"]`);
Oliver marked this conversation as resolved

This can be removed as it's covered by the case at the end of the function

This can be removed as it's covered by the case at the end of the function
if (keybindingList.childElementCount === 0) {
tabButton?.remove();
return;
};
const keybind = keybindingList.querySelector(`.form-group[data-action-id="${__ID__}.${key}"]`); const keybind = keybindingList.querySelector(`.form-group[data-action-id="${__ID__}.${key}"]`);
keybind?.remove(); keybind?.remove();