stats.lua: filter keybindings by comment

Requested in #14966.
This commit is contained in:
Guido Cella
2024-10-01 14:26:54 +02:00
committed by Avi Halachmi
parent a6c363e8da
commit dcd681ecdd

View File

@@ -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