don't revert to plain strings for pens

develop
Myk Taylor 2023-01-06 12:15:38 -08:00
parent e111a73763
commit f15e9e3577
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 3 additions and 1 deletions

@ -1452,7 +1452,9 @@ function CycleHotkeyLabel:getOptionValue(option_idx)
end
function CycleHotkeyLabel:getOptionPen(option_idx)
return cyclehotkeylabel_getOptionElem(self, option_idx, 'pen')
local pen = cyclehotkeylabel_getOptionElem(self, option_idx, 'pen')
if type(pen) == 'string' then return nil end
return pen
end
function CycleHotkeyLabel:onInput(keys)