mirror of https://github.com/koreader/koreader
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
0d66ea7555
InputText, ScrollTextWidget, TextBoxWidget: - proper line scrolling when moving cursor or inserting/deleting text to behave like most text editors do - fix cursor navigation, optimize refreshes when moving only the cursor, don't recreate the textwidget when moving cursor up/down - optimize refresh areas, stick to "ui" to avoid a "partial" black flash every 6 appended or deleted chars InputText: - fix issue when toggling Show password multiple times - new option: InputText.cursor_at_end (default: true) - if no InputText.height provided, measure the text widget height that we would start with, and use a ScrollTextWidget with that fixed height, so widget does not overflow container if we extend the text and increase the number of lines - as we are using "ui" refreshes while text editing, allows refreshing the InputText with a diagonal swipe on it (actually, refresh the whole screen, which allows refreshing the keyboard too if needed) ScrollTextWidget: - properly align scrollbar with its TextBoxWidget TextBoxWidget: - some cleanup (added new properties to avoid many method calls), added proxy methods for upper widgets to get them - reordered/renamed/refactored the *CharPos* methods for easier reading (sorry for the diff that won't help reviewing, but that was needed) InputDialog: - new options: allow_newline = false, -- allow entering new lines cursor_at_end = true, -- starts with cursor at end of text, ready to append fullscreen = false, -- adjust to full screen minus keyboard condensed = false, -- true will prevent adding air and balance between elements add_scroll_buttons = false, -- add scroll Up/Down buttons to first row of buttons add_nav_bar = false, -- append a row of page navigation buttons - find the most adequate text height, when none provided or fullscreen, to not overflow screen (and not be stuck with Cancel/Save buttons hidden) - had to disable the use of a MovableContainer (many issues like becoming transparent when a PathChooser comes in front, Hold to paste from clipboard, moving the InputDialog under the keyboard and getting stuck...) GestureRange: fix possible crash (when event processed after widget destruction ?) LoginDialog: fix some ui stack increase and possible crash when switching focus many times. |
6 years ago | |
---|---|---|
.. | ||
container | 6 years ago | |
bboxwidget.lua | 7 years ago | |
bookstatuswidget.lua | 6 years ago | |
button.lua | 6 years ago | |
buttondialog.lua | 6 years ago | |
buttondialogtitle.lua | 6 years ago | |
buttonprogresswidget.lua | 6 years ago | |
buttontable.lua | 6 years ago | |
checkbutton.lua | 6 years ago | |
checkmark.lua | 7 years ago | |
closebutton.lua | 7 years ago | |
configdialog.lua | 6 years ago | |
confirmbox.lua | 6 years ago | |
datewidget.lua | 6 years ago | |
dictquicklookup.lua | 6 years ago | |
eventlistener.lua | 7 years ago | |
filechooser.lua | 6 years ago | |
fixedtextwidget.lua | 10 years ago | |
focusmanager.lua | 6 years ago | |
frontlightwidget.lua | 6 years ago | |
horizontalgroup.lua | 7 years ago | |
horizontalspan.lua | 10 years ago | |
htmlboxwidget.lua | 6 years ago | |
hyphenationlimits.lua | 6 years ago | |
iconbutton.lua | 6 years ago | |
imageviewer.lua | 6 years ago | |
imagewidget.lua | 6 years ago | |
infomessage.lua | 6 years ago | |
inputdialog.lua | 6 years ago | |
inputtext.lua | 6 years ago | |
keyvaluepage.lua | 6 years ago | |
linewidget.lua | 7 years ago | |
linkbox.lua | 7 years ago | |
listview.lua | 7 years ago | |
logindialog.lua | 6 years ago | |
menu.lua | 6 years ago | |
multiconfirmbox.lua | 6 years ago | |
multiinputdialog.lua | 6 years ago | |
naturallightwidget.lua | 6 years ago | |
networksetting.lua | 6 years ago | |
notification.lua | 6 years ago | |
numberpickerwidget.lua | 6 years ago | |
opdsbrowser.lua | 6 years ago | |
openwithdialog.lua | 6 years ago | |
overlapgroup.lua | 7 years ago | |
pathchooser.lua | 6 years ago | |
physicalkeyboard.lua | 6 years ago | |
progresswidget.lua | 6 years ago | |
radiobutton.lua | 6 years ago | |
radiobuttontable.lua | 6 years ago | |
rectspan.lua | 10 years ago | |
screensaverwidget.lua | 7 years ago | |
screenshoter.lua | 9 years ago | |
scrollhtmlwidget.lua | 6 years ago | |
scrolltextwidget.lua | 6 years ago | |
spinwidget.lua | 7 years ago | |
textboxwidget.lua | 6 years ago | |
textviewer.lua | 6 years ago | |
textwidget.lua | 6 years ago | |
timewidget.lua | 6 years ago | |
toggleswitch.lua | 6 years ago | |
touchmenu.lua | 6 years ago | |
trapwidget.lua | 7 years ago | |
verticalgroup.lua | 7 years ago | |
verticalscrollbar.lua | 7 years ago | |
verticalspan.lua | 10 years ago | |
virtualkeyboard.lua | 6 years ago | |
widget.lua | 8 years ago |