BUILD197 — отправлять поздние составы и показывать этапы загрузки
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user