File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -90,15 +90,6 @@ local function launch(args)
90
90
91
91
local ignore_case = args .ignore_case or true
92
92
93
- if ignore_case then
94
- onlogout_key = string.lower (onlogout_key )
95
- onlock_key = string.lower (onlock_key )
96
- onreboot_key = string.lower (onreboot_key )
97
- onsuspend_key = string.lower (onsuspend_key )
98
- onpoweroff_key = string.lower (onpoweroff_key )
99
- all_keys = string.lower (all_keys )
100
- end
101
-
102
93
w :set_bg (bg_color )
103
94
if # phrases > 0 then
104
95
phrase_widget :set_markup (
@@ -162,6 +153,12 @@ local function launch(args)
162
153
else
163
154
if ignore_case then
164
155
key = string.lower (key )
156
+ onlogout_key = string.lower (onlogout_key )
157
+ onlock_key = string.lower (onlock_key )
158
+ onreboot_key = string.lower (onreboot_key )
159
+ onsuspend_key = string.lower (onsuspend_key )
160
+ onpoweroff_key = string.lower (onpoweroff_key )
161
+ all_keys = string.lower (all_keys )
165
162
end
166
163
167
164
if key == onpoweroff_key then onpoweroff ()
You can’t perform that action at this time.
0 commit comments