cli: improve alignment for special keys

The following lines have an insane length and are therefore not included in the
longest line:

    WIN7_MONITOR_SWITCH_AS_WIN_SHIFT_LEFTARROW=0x0093,
    WIN7_MONITOR_SWITCH_AS_WIN_SHIFT_RIGHTARROW=0x0094,

While doing this, also fix an obvious typo in the "Lock PC" control.
This commit is contained in:
Peter Wu 2013-05-27 14:07:38 +02:00
parent b2a62c2dd7
commit 39e630cece
2 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ CONTROL = _NamedInts(
BUTTON_23=0x006C,
BUTTON_24=0x006D,
SHOW_DESKTOP=0x006E,
LOKC_PC=0x006F,
Lock_PC=0x006F,
FN_F1=0x0070,
FN_F2=0x0071,
FN_F3=0x0072,

View File

@ -147,7 +147,7 @@ def _print_device(dev, verbose=False):
print (" Has %d reprogrammable keys:" % len(dev.keys))
for k in dev.keys:
flags = special_keys.KEY_FLAG.flag_names(k.flags)
print (" %2d: %-20s => %-20s %s" % (k.index, k.key, k.task, ', '.join(flags)))
print (" %2d: %-26s => %-27s %s" % (k.index, k.key, k.task, ', '.join(flags)))
if p > 0:
battery = hidpp20.get_battery(dev)