From dcd681ecdd69af91be21d98af89a39d24fe16479 Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Tue, 1 Oct 2024 14:26:54 +0200 Subject: [PATCH] stats.lua: filter keybindings by comment Requested in #14966. --- player/lua/stats.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/lua/stats.lua b/player/lua/stats.lua index e8ba263b55..a46ee33190 100644 --- a/player/lua/stats.lua +++ b/player/lua/stats.lua @@ -474,7 +474,7 @@ local function get_kbinfo_lines() and bind.section ~= "input_forced_console" and ( searched_text == nil or - (bind.key .. bind.cmd):lower():find(searched_text, 1, true) + (bind.key .. bind.cmd .. (bind.comment or "")):lower():find(searched_text, 1, true) ) then active[bind.key] = bind