[Urwid] mapping of space key

Patrick Totzke patricktotzke at googlemail.com
Thu Jun 16 03:06:59 EDT 2011


Hi all!
I wonder how I could map the space key in combination with a modifier:
Currently, I use something like

if key == ' ':
  key = 'page down'

so that my UI interprets space as a page down. How do I now map
shift-space to page up? I tried 'shift ', 'shift  ', and 'shift \ '
so far..
Thanks,
/patrick

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
Url : http://lists.excess.org/pipermail/urwid/attachments/20110616/48678e3e/attachment.pgp 


More information about the Urwid mailing list