BUILD197 — отправлять поздние составы и показывать этапы загрузки

This commit is contained in:
2026-10-22 12:33:39 +03:00
parent f3018b97c3
commit 95c62cefb0
17 changed files with 2561 additions and 107 deletions

View File

@@ -18103,6 +18103,14 @@ function renderHockeyPenaltyDashboard(node, component, runtime) {
// Capture phase is intentional: shortcuts must run before focused runtime
// controls (for example the match header) receive Space/Enter themselves.
window.addEventListener("keydown", (event) => {
if (window.document?.documentElement?.classList?.contains("hockey-match-loading-active")) {
state.pressedShortcutKeys.clear();
state.pressedShortcutModifiers.clear();
state.modifierShortcutChordModifiers.clear();
state.modifierShortcutChordUsedKey = false;
state.modifierShortcutChordFired = false;
return;
}
if (window.HockeyProgramLog?.isOpen?.()) return;
syncShortcutModifiersFromEvent(event, true);
if (!shortcutModifierFromEvent(event) && state.pressedShortcutModifiers.size) {
@@ -18145,6 +18153,14 @@ function renderHockeyPenaltyDashboard(node, component, runtime) {
}, true);
window.addEventListener("keyup", (event) => {
if (window.document?.documentElement?.classList?.contains("hockey-match-loading-active")) {
state.pressedShortcutKeys.clear();
state.pressedShortcutModifiers.clear();
state.modifierShortcutChordModifiers.clear();
state.modifierShortcutChordUsedKey = false;
state.modifierShortcutChordFired = false;
return;
}
if (window.HockeyProgramLog?.isOpen?.()) return;
const physicalKey = shortcutPhysicalKeyToken(event);
if (physicalKey) state.pressedShortcutKeys.delete(physicalKey);