Fixed automatic moving of the cursor when inputting characters with number keys

This commit is contained in:
Klaus Schmidinger
2025-06-18 20:22:10 +02:00
parent f305e7df37
commit 09b95eeae2
4 changed files with 9 additions and 6 deletions

View File

@@ -3389,6 +3389,8 @@ Stefan Hofmann <stefan.hofmann@t-online.de>
for adding '~' to the list of delimiters in cTextWrapper
for suggesting to delete old recording info before reading modified info file
for fixing strreplace() in case the search string is empty
for reporting broken automatic moving of the cursor when inputting characters with
number keys
Stefan Blochberger <Stefan.Blochberger@gmx.de>
for suggesting to automatically display the progress display whenever replay of a

View File

@@ -10130,3 +10130,5 @@ Video Disk Recorder Revision History
- Enabled manually turning subtitles on/off in 'after rewind' mode.
- Limiting timeouts to a minimum of 3ms to avoid problems with polls and waits if timeout is 0.
- Fixed strreplace() in case the search string is empty (thanks to Stefan Hofmann).
- Fixed automatic moving of the cursor when inputting characters with number keys (reported
by Stefan Hofmann).

View File

@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: menuitems.c 5.3 2025/01/29 10:20:17 kls Exp $
* $Id: menuitems.c 5.4 2025/06/18 20:22:10 kls Exp $
*/
#include "menuitems.h"
@@ -100,7 +100,7 @@ eOSState cMenuEditIntItem::ProcessKey(eKeys Key)
bool IsRepeat = Key & k_Repeat;
Key = NORMALKEY(Key);
switch (Key) {
case kNone: break;
case kNone: return state;
case k0 ... k9:
if (fresh) {
newValue = 0;
@@ -300,7 +300,7 @@ eOSState cMenuEditPrcItem::ProcessKey(eKeys Key)
double newValue = round(*value * factor); // avoids precision problems
Key = NORMALKEY(Key);
switch (Key) {
case kNone: break;
case kNone: return state;
case k0 ... k9:
if (fresh) {
newValue = 0;

View File

@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: osdbase.c 5.9 2025/02/17 10:49:10 kls Exp $
* $Id: osdbase.c 5.10 2025/06/18 20:22:10 kls Exp $
*/
#include "osdbase.h"
@@ -579,8 +579,7 @@ eOSState cOsdMenu::ProcessKey(eKeys Key)
if (marked < 0 && item) {
eOSState state = item->ProcessKey(Key);
if (state != osUnknown) {
if (Key != kNone)
DisplayCurrent(true);
DisplayCurrent(true);
return state;
}
}