mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
long press the backspace key will clear input text
This commit is contained in:
@@ -151,6 +151,12 @@ function InputText:delChar()
|
||||
UIManager:setDirty(self.parent, "partial")
|
||||
end
|
||||
|
||||
function InputText:clear()
|
||||
self.text = ""
|
||||
self:initTextBox()
|
||||
UIManager:setDirty(self.parent, "partial")
|
||||
end
|
||||
|
||||
function InputText:getText()
|
||||
return self.text
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user