1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed auto advance in string entry fields when pressing Up/Down in insert mode

This commit is contained in:
Klaus Schmidinger 2006-02-04 12:50:11 +01:00
parent 0d6368ad4a
commit cbd32dd914
3 changed files with 7 additions and 3 deletions

View File

@ -1357,6 +1357,8 @@ Udo Richter <udo_richter@gmx.de>
for making the Makefile report a summary of failed plugins for making the Makefile report a summary of failed plugins
for reporting a problem with the new handling of k_Repeat keypresses in channel for reporting a problem with the new handling of k_Repeat keypresses in channel
switching switching
for reporting a problem with auto advance in string entry fields when pressing
Up/Down in insert mode
Sven Kreiensen <svenk@kammer.uni-hannover.de> Sven Kreiensen <svenk@kammer.uni-hannover.de>
for his help in keeping 'channels.conf.terr' up to date for his help in keeping 'channels.conf.terr' up to date

View File

@ -4289,3 +4289,5 @@ Video Disk Recorder Revision History
different OSD languages, so please make sure you have 21 versions for each of different OSD languages, so please make sure you have 21 versions for each of
your texts. your texts.
- Updated the Polish OSD texts (thanks to Jaroslaw Swierczynski). - Updated the Polish OSD texts (thanks to Jaroslaw Swierczynski).
- Fixed auto advance in string entry fields when pressing Up/Down in insert mode
(reported by Udo Richter).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: menuitems.c 1.30 2006/01/21 12:27:14 kls Exp $ * $Id: menuitems.c 1.31 2006/02/04 12:47:08 kls Exp $
*/ */
#include "menuitems.h" #include "menuitems.h"
@ -345,7 +345,7 @@ eOSState cMenuEditStrItem::ProcessKey(eKeys Key)
bool SameKey = Key == lastKey; bool SameKey = Key == lastKey;
if (Key != kNone) if (Key != kNone)
lastKey = Key; lastKey = Key;
else if (!newchar && autoAdvanceTimeout.TimedOut()) { else if (!newchar && k0 <= NORMALKEY(lastKey) && NORMALKEY(lastKey) <= k9 && autoAdvanceTimeout.TimedOut()) {
AdvancePos(); AdvancePos();
newchar = true; newchar = true;
currentChar = NULL; currentChar = NULL;
@ -427,7 +427,7 @@ eOSState cMenuEditStrItem::ProcessKey(eKeys Key)
value[pos] = toupper(Inc(tolower(value[pos]), NORMALKEY(Key) == kUp)); value[pos] = toupper(Inc(tolower(value[pos]), NORMALKEY(Key) == kUp));
else else
value[pos] = Inc( value[pos], NORMALKEY(Key) == kUp); value[pos] = Inc( value[pos], NORMALKEY(Key) == kUp);
newchar = true; newchar = false;
} }
else else
return cMenuEditItem::ProcessKey(Key); return cMenuEditItem::ProcessKey(Key);