kbm+canvasevent: fix space=Button2 exception
authorAndrew Chadwick <andrewc-git@piffle.org>
Sun, 25 Nov 2012 21:51:00 +0000 (21:51 +0000)
committerAndrew Chadwick <andrewc-git@piffle.org>
Sun, 25 Nov 2012 21:51:00 +0000 (21:51 +0000)
commitec3b9fb7f452fb96cd75f1c20d0138a008653831
tree6c46e7c5b10162aa43c1dadbfa42b607f51cacf9
parent3330128c36e2e28e19c31c794b6da36f671e9577
kbm+canvasevent: fix space=Button2 exception

Fix exception with popup states when using the spacebar as a "pretend"
Button2 using the button mapping. Since holds matter, dispatch the event
as an action activation using the keyboard mapping, which keeps track of
held keys.

https://gna.org/bugs/index.php?20325
gui/canvasevent.py
gui/keyboard.py