From 9edcb229f384c6200e781bdd6935151194dc4d35 Mon Sep 17 00:00:00 2001 From: MrNewb <47620135+MrNewb@users.noreply.github.com> Date: Tue, 10 Jun 2025 06:13:19 -0400 Subject: [PATCH] patch --- lib/utility/client/utility.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/utility/client/utility.lua b/lib/utility/client/utility.lua index 946f525..81430e6 100644 --- a/lib/utility/client/utility.lua +++ b/lib/utility/client/utility.lua @@ -612,8 +612,13 @@ local function translateKey(key) end function Utility.GetCommandKey(commandName) - local hash = GetHashKey(commandName) + local hash = GetHashKey(commandName) | 0x80000000 local button = GetControlInstructionalButton(2, hash, true) + if not button or button == "" or button == "NULL" then + hash = GetHashKey(commandName) + button = GetControlInstructionalButton(2, hash, true) + end + return translateKey(button) end