From 86d79b2fc16a6a0c8282e41318c74695088de9d0 Mon Sep 17 00:00:00 2001 From: JonBons Date: Mon, 13 Feb 2023 21:57:32 -0600 Subject: [PATCH] Common - Fixed CBA keybinds not working with progress bar (#9139) * Fixed CBA keybinds not working on the progress bar after cursor hiding change * Removed fallback value for uiNamespace lookup Co-authored-by: Filip Maciejewski --------- Co-authored-by: Filip Maciejewski --- addons/common/functions/fnc_progressBar.sqf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/addons/common/functions/fnc_progressBar.sqf b/addons/common/functions/fnc_progressBar.sqf index a08f236886..41257d15e6 100644 --- a/addons/common/functions/fnc_progressBar.sqf +++ b/addons/common/functions/fnc_progressBar.sqf @@ -30,8 +30,12 @@ private _player = ACE_player; closeDialog 0; createDialog QGVAR(ProgressBar_Dialog); -// Hide cursor by using custom transparent cursor private _display = uiNamespace getVariable QGVAR(dlgProgress); + +// Ensure CBA keybindings are hooked into the display +_display call (uiNamespace getVariable "CBA_events_fnc_initDisplayCurator"); + +// Hide cursor by using custom transparent cursor private _map = _display displayCtrl 101; _map ctrlMapCursor ["", QGVAR(blank)];