allow shift-click to trigger submit2 for List

develop
myk002 2022-11-07 16:14:16 -08:00
parent 1b7b75d8ab
commit 83f560a6f4
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 5 additions and 1 deletions

@ -1252,7 +1252,11 @@ function List:onInput(keys)
local idx = self:getIdxUnderMouse()
if idx then
self:setSelected(idx)
if dfhack.internal.getModifiers().shift then
self:submit2()
else
self:submit()
end
return true
end
else