lua/widgets filtered list input fix

FilteredList was not consuming input events.
develop
Warmist 2019-09-30 22:00:06 +03:00 committed by GitHub
parent 11c6042416
commit a2b5c1ddd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

@ -714,13 +714,16 @@ end
function FilteredList:onInput(keys) function FilteredList:onInput(keys)
if self.edit_key and keys[self.edit_key] and not self.edit.active then if self.edit_key and keys[self.edit_key] and not self.edit.active then
self.edit.active = true self.edit.active = true
return true
elseif keys.LEAVESCREEN and self.edit.active then elseif keys.LEAVESCREEN and self.edit.active then
self.edit.active = false self.edit.active = false
return true
else else
self:inputToSubviews(keys) return self:inputToSubviews(keys)
end end
end end
function FilteredList:getChoices() function FilteredList:getChoices()
return self.choices return self.choices
end end