Remove '_' from begin of some keynames start with numbers
authorPeng Huang <shawn.p.huang@gmail.com>
Wed, 2 Sep 2009 08:30:57 +0000 (16:30 +0800)
committerPeng Huang <shawn.p.huang@gmail.com>
Wed, 2 Sep 2009 08:30:57 +0000 (16:30 +0800)
ibus/keysyms.py

index 0ab5c7d..69c6dd9 100644 (file)
@@ -1504,6 +1504,8 @@ for key, value in vars().items():
     if key.startswith("__") or \
        key in ("name_to_keycode", "keycode_to_name", "VoidSymbol"):
         continue
+    if key.startswith("_"):
+        key = key[1:]
     __name_to_keycode[key] = value
     __keycode_to_name[value] = key