The Input widget can already scroll, by setting the parameter visible_width, but that sets the number of characters displayed and doesn't work well with variable-width fonts where an "i" occupies much less width than a "W".
It fixes Bug #317: Unable to edit long file names, but will also fix some other similar problems in VirtualKeyBoard uses, and has the potential for wider application in some text input popups that currently use visible_width.
The new functionality can be tested in the VirtualKeyBoard popup for the rename function in the media selection screen (where the bug was first noticed) - from live TV MEDIA, navigate to recording/file, long-RED. It can also be tested in the timer edit screen. From live TV TIMER, navigate to timer, OK, then press TEXT when either Name or Description is in focus.
It is also useful to test the old functionality, e.g. for the parental control PIN in MENU>Setup>TV>Parental control, and for scrolling with a fixed character width in File Commander. From live TV. MENU>Sources / Files, navigate to file, BLUE Rename.
The changes should work for all non-wrapping alignments, right, left or center. It can be tested with right alignment in the builtin skins, and with left alignment in OverlayHD.
Uninstall this patch before doing any online firmware update! A firmware update from USB will safely remove this patch, and recover from any errors you might make in doing the install or uninstall.
This patch was tested on firmware 20180828beta, but it will probably work on even quite old firmware.
It is compatible with OverlayHD and it should also co-exist with Patches By Adoxa.
If you're uncomfortable with doing any part of the instructions, don't do any of them!
To install:
To apply the patches, download the linked .ZIP file, and extract it. It will create a new directory/folder called input-scroll-installer, which contains two files, installer.sh and uninstaller.sh.
Copy the two files somewhere convenient on a T/U series box (like /home/root), then log into the box using telnet or ssh, change directory to the place you put the installer.sh/uninstaller.sh files. If you put the files in /home/root you'll be in the right place as soon as you log in.
In recent betas, you can also install and uninstall by running the scripts from inside File Commander.
To install the patches run:
sh installer.sh
and restart the GUI (or reboot).
To uninstall the patches, log in and go to the directory as you did to install, and run
sh uninstaller.sh
And restart the GUI.
Make sure you uninstall before doing an upgrade. Don't run the installer if you've already installed & don't run the uninstaller if you've already uninstalled.
You can check whether the patches are installed by logging in and running this on the box:
find /usr/bin /usr/share/enigma2 /usr/lib/enigma2 -name \*.bak
It should print nothing if the patch isn't installed, and it should print
Code: Select all
/usr/lib/enigma2/python/Components/Input.pyo.bak
Comments welcome!