core/menusystem: add back cancel button support
This commit is contained in:
parent
a2f15bf14e
commit
b99c84c86f
|
@ -52,6 +52,12 @@ function ListBox:keyreleased(key, code)
|
|||
end
|
||||
end
|
||||
|
||||
if key == "B" then
|
||||
if (self.widget.cancel >= 1 and self.widget.cancel <= #self.widget.list) then
|
||||
self.widget.list[self.widget.cancel]:action()
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function ListBox:mousemoved(x, y)
|
||||
|
|
Loading…
Reference in New Issue