mirror of
https://github.com/koreader/koreader.git
synced 2025-12-24 12:14:05 +01:00
Text input related fixes & enhancements (#4124)
InputText: checks whether provided content can be given back unaltered, which may not be the case after it is splitted to UTF8 chars if the text is binary content. Prevent editing text if that is the case. Adds InputText and InputDialog :isEditable() and :isEdited() methods. Also accounts for the scrollbar width when measuring text to prevent it from being displayed when not needed. Also ensure a minimal size of the scrollbar thumb so it is rendered when huge text with many lines is displayed. Virtual keyboard: Hold on Backspace: delete from cursor to start of line instead of clearing all text content.
This commit is contained in:
@@ -463,7 +463,7 @@ function util.getMenuText(item)
|
||||
else
|
||||
text = item.text
|
||||
end
|
||||
if item.sub_item_table ~= nil then
|
||||
if item.sub_item_table ~= nil or item.sub_item_table_func then
|
||||
text = text .. " \226\150\184"
|
||||
end
|
||||
return text
|
||||
|
||||
Reference in New Issue
Block a user