[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbios
Subject:    [OpenBIOS] r820 - cpu/x86/pc/olpc
From:       svn () openbios ! org
Date:       2008-03-10 17:39:13
Message-ID: 200803101739.m2AHdTxd021449 () mailer ! progressive-comp ! com
[Download RAW message or body]

Author: wmb
Date: 2008-03-10 18:39:13 +0100 (Mon, 10 Mar 2008)
New Revision: 820

Modified:
   cpu/x86/pc/olpc/parsekbd0.py
Log:
OLPC parsekbd0 - fixed a bug in one of the keyboard table parsers.
It was claiming to replace a key entry with a better choice, but
not actually doing it.  Test case: python parsekbd0.py OLPC_Thailand_Keyboard
resulted in a keymap that used the wrong stations for - and / .


Modified: cpu/x86/pc/olpc/parsekbd0.py
===================================================================
--- cpu/x86/pc/olpc/parsekbd0.py	2008-03-06 16:29:11 UTC (rev 819)
+++ cpu/x86/pc/olpc/parsekbd0.py	2008-03-10 17:39:13 UTC (rev 820)
@@ -103,6 +103,8 @@
                 if (ascii >= 0x20) & (((modifier & 1) == 0) & (keys[ascii] != \
keyid)):  if modifier < modifiers[ascii]:
                                 print "Replacing", chr(ascii), "at keyid", \
keys[ascii], "modifier", modifiers[ascii], "with keyid", keyid, "modifier", modifier \
+                                modifiers[ascii] = modifier +                        \
keys[ascii] = keyid  else:
                                 print "Discarding", chr(ascii), "at keyid", keyid, \
"modifier", modifier, "because keyid", keys[ascii], "modifier", modifiers[ascii], "is \
better"  return


-- 
OpenBIOS                 http://openbios.org/
Mailinglist:  http://lists.openbios.org/mailman/listinfo
Free your System - May the Forth be with you


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic