mirror of
https://github.com/airstruck/luigi.git
synced 2025-12-19 02:16:43 +00:00
fix origin widget for PressEnd events generated by keyboard shortcuts
This commit is contained in:
@@ -170,7 +170,7 @@ end
|
||||
|
||||
function Input:handlePressEnd (layout, button, x, y, widget, shortcut)
|
||||
local hit, widget = checkHit(widget or layout:getWidgetAt(x, y), layout)
|
||||
local originWidget = self.pressedWidgets[button]
|
||||
local originWidget = widget or self.pressedWidgets[button]
|
||||
if not originWidget then return end
|
||||
if hit then
|
||||
originWidget.pressed[button] = nil
|
||||
|
||||
Reference in New Issue
Block a user