cancel EditField editing on r-click

develop
Myk Taylor 2023-01-13 17:05:08 -08:00
parent 21d160c478
commit 4f88d27e08
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 1 additions and 1 deletions

@ -708,7 +708,7 @@ function EditField:onInput(keys)
end
end
if self.key and keys.LEAVESCREEN then
if self.key and (keys.LEAVESCREEN or keys._MOUSE_R_DOWN) then
local old = self.text
self:setText(self.saved_text)
if self.on_change and old ~= self.saved_text then