From 199236f3ccea5d99d0e344a9db43c59771afd5ba Mon Sep 17 00:00:00 2001 From: Azumgi <4zumgi@gmail.com> Date: Thu, 24 Jan 2019 18:44:20 +0300 Subject: [PATCH] [Options] Remove 'released' from allowed triggers --- vmf/scripts/mods/vmf/modules/core/options.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vmf/scripts/mods/vmf/modules/core/options.lua b/vmf/scripts/mods/vmf/modules/core/options.lua index 8a8cf15..2e73355 100644 --- a/vmf/scripts/mods/vmf/modules/core/options.lua +++ b/vmf/scripts/mods/vmf/modules/core/options.lua @@ -293,7 +293,6 @@ end local allowed_keybind_triggers = { pressed = true, - released = true, held = true } local allowed_keybind_types = { @@ -313,7 +312,7 @@ local function validate_keybind_data(data) if not allowed_keybind_triggers[data.keybind_trigger] then vmf.throw_error("[widget \"%s\" (keybind)]: 'keybind_trigger' field is required and must contain string " .. - "\"pressed\", \"released\" or \"held\"", data.setting_id) + "\"pressed\" or \"held\"", data.setting_id) end local keybind_type = data.keybind_type