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.
koreader/frontend
poire-z 0d66ea7555
Text input fixes and enhancements (#4084)
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
..
apps Text input fixes and enhancements (#4084) 6 years ago
device Misc. minor fixes (#4080) 6 years ago
document bump crengine: adds support for dpi-based css units (#4040) 6 years ago
ui Text input fixes and enhancements (#4084) 6 years ago
cache.lua [fix] Cache: don't overwrite same CacheItem (#3847) 6 years ago
cacheitem.lua cleanup: expand tab to 4 spaces 10 years ago
configurable.lua build: enforce luacheck in travis build 8 years ago
dbg.lua [chore] Handle SDL_MOUSEWHEEL and less hackish SDL events (#3826) 6 years ago
depgraph.lua fix: override readerhighlight hold in readerfooter 7 years ago
device.lua Propose installing SDL on Linux (#3753) 6 years ago
docsettings.lua [chore] Ignore empty files and tables in DocSettings (#3348) 7 years ago
dump.lua Docs: dump & random 7 years ago
gettext.lua turn missing translations into a warning (#3752) 6 years ago
httpclient.lua build: enforce luacheck in travis build 8 years ago
logger.lua feat: add logger module & rewrite kobo suspend script in lua 8 years ago
luadata.lua Add LuaData and Dictionary Lookup History (#3161) 7 years ago
luasettings.lua luasettings: backup previous file and auto-recover (#3625) 6 years ago
luxl.lua treate quoted slash as plain text in attribute value 10 years ago
optmath.lua doc: fix document build 8 years ago
pluginloader.lua Allow disabling some plugins with manually added setting (#4054) 6 years ago
pluginshare.lua Move PluginShare.backgroundJobs into PluginShare module (#3128) 7 years ago
random.lua Docs: dump & random 7 years ago
readhistory.lua Fix sort-by-last-read when partition is mounted noatime (#3990) 6 years ago
up_reg.list adapt widgets to new refresh/repaint API 10 years ago
util.lua CloudStorage: Allow use reserved characters in FTP username and FTP password (#3924) 6 years ago
version.lua Visual feedback around tar/zsync on Kobo during OTA updates (#4043) 6 years ago