Mixin classes for UI elements

A couple of handy mixin classes for ignoring hotkey presses and making a
dialog dismiss itself after a set period of time.