diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-04-23 11:43:54 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-04-23 11:43:54 +0200 |
commit | b37a4d3c7a569123d252cc07381e65e083188376 (patch) | |
tree | 380eae286f35e0468f5932a51b3d4b4d74067229 /menuitems.c | |
parent | 42b2676d82e0bb58ebcc0e9ff80e1a88600d7fcd (diff) | |
download | vdr-b37a4d3c7a569123d252cc07381e65e083188376.tar.gz vdr-b37a4d3c7a569123d252cc07381e65e083188376.tar.bz2 |
Ignoring k_Repeat when deciding whether the same key has been pressed in string input fields1.3.48
Diffstat (limited to 'menuitems.c')
-rw-r--r-- | menuitems.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/menuitems.c b/menuitems.c index e756e8df..ef7cccc3 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.42 2006/04/14 10:41:28 kls Exp $ + * $Id: menuitems.c 1.43 2006/04/23 11:39:48 kls Exp $ */ #include "menuitems.h" @@ -351,10 +351,10 @@ char cMenuEditStrItem::Inc(char c, bool Up) eOSState cMenuEditStrItem::ProcessKey(eKeys Key) { - bool SameKey = Key == lastKey; + bool SameKey = NORMALKEY(Key) == lastKey; if (Key != kNone) - lastKey = Key; - else if (!newchar && k0 <= NORMALKEY(lastKey) && NORMALKEY(lastKey) <= k9 && autoAdvanceTimeout.TimedOut()) { + lastKey = NORMALKEY(Key); + else if (!newchar && k0 <= lastKey && lastKey <= k9 && autoAdvanceTimeout.TimedOut()) { AdvancePos(); newchar = true; currentChar = NULL; @@ -460,7 +460,7 @@ eOSState cMenuEditStrItem::ProcessKey(eKeys Key) } if (!currentChar || !*currentChar || *currentChar == '\t') { // find the beginning of the character map entry for Key - int n = Key - k0; + int n = NORMALKEY(Key) - k0; currentChar = charMap; while (n > 0 && *currentChar) { if (*currentChar++ == '\t') |