mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
press Enter in Goto Dialog will goto page/location directly
This commit is contained in:
@@ -94,6 +94,10 @@ function InputText:getKeyboardDimen()
|
||||
end
|
||||
|
||||
function InputText:addChar(char)
|
||||
if self.enter_callback and char == '\n' then
|
||||
UIManager:scheduleIn(0.1, function() self.enter_callback() end)
|
||||
return
|
||||
end
|
||||
table.insert(self.charlist, self.charpos, char)
|
||||
self.charpos = self.charpos + 1
|
||||
self.text = self:CharlistToString()
|
||||
|
||||
Reference in New Issue
Block a user