work around dodgy double-click handling for irrlicht listboxes.

also: general code cleanup.