Skip to content

Commit f147c60

Browse files
committed
Fix bug where it wouldn't work with uppercase
1 parent 3a9990f commit f147c60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

logout-popup-widget/logout-popup.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ local function launch(args)
156156

157157
local all_keys = onlogout_key .. onlock_key .. onreboot_key .. onsuspend_key .. onpoweroff_key
158158

159-
if key == 'Escape' or string.match(all_keys, key) then
159+
if key == 'Escape' or string.match(string.lower(all_keys), string.lower(key)) then
160160
phrase_widget:set_text('')
161161
capi.keygrabber.stop()
162162
w.visible = false

0 commit comments

Comments
 (0)