Fix bug where it wouldn't work with uppercase

This commit is contained in:
Stasky745 2024-05-17 17:03:49 +02:00
parent 3a9990f8b0
commit f147c600e5
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ local function launch(args)
local all_keys = onlogout_key .. onlock_key .. onreboot_key .. onsuspend_key .. onpoweroff_key
if key == 'Escape' or string.match(all_keys, key) then
if key == 'Escape' or string.match(string.lower(all_keys), string.lower(key)) then
phrase_widget:set_text('')
capi.keygrabber.stop()
w.visible = false