diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-02-04 12:50:11 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-02-04 12:50:11 +0100 |
commit | cbd32dd914d2670b907aa6030ecbeefab78ae8b3 (patch) | |
tree | 04086124b21b97274aa9697a03a8c2f46ed38299 /menuitems.c | |
parent | 0d6368ad4a5bf9abcdd814730a3b8df5595e3d08 (diff) | |
download | vdr-cbd32dd914d2670b907aa6030ecbeefab78ae8b3.tar.gz vdr-cbd32dd914d2670b907aa6030ecbeefab78ae8b3.tar.bz2 |
Fixed auto advance in string entry fields when pressing Up/Down in insert mode
Diffstat (limited to 'menuitems.c')
-rw-r--r-- | menuitems.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/menuitems.c b/menuitems.c index 455070d1..e2380663 100644 --- a/menuitems.c +++ b/menuitems.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * 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" @@ -345,7 +345,7 @@ eOSState cMenuEditStrItem::ProcessKey(eKeys Key) bool SameKey = Key == lastKey; if (Key != kNone) lastKey = Key; - else if (!newchar && autoAdvanceTimeout.TimedOut()) { + else if (!newchar && k0 <= NORMALKEY(lastKey) && NORMALKEY(lastKey) <= k9 && autoAdvanceTimeout.TimedOut()) { AdvancePos(); newchar = true; currentChar = NULL; @@ -427,7 +427,7 @@ eOSState cMenuEditStrItem::ProcessKey(eKeys Key) value[pos] = toupper(Inc(tolower(value[pos]), NORMALKEY(Key) == kUp)); else value[pos] = Inc( value[pos], NORMALKEY(Key) == kUp); - newchar = true; + newchar = false; } else return cMenuEditItem::ProcessKey(Key); |