You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
327 B
15 lines
327 B
--[[
|
|
Function to remove debounce key if needed.
|
|
]]
|
|
|
|
local function removeDebounceKeyIfNeeded(prefixKey, debounceId)
|
|
if debounceId then
|
|
local debounceKey = prefixKey .. "de:" .. debounceId
|
|
local pttl = rcall("PTTL", debounceKey)
|
|
|
|
if pttl == 0 or pttl == -1 then
|
|
rcall("DEL", debounceKey)
|
|
end
|
|
end
|
|
end
|