Merge pull request #40 from d-j-a-y/master

Fix - Sometime, hitting something around docks = segfault!
Fix - Possible hitting something around Toolbox = segfault!
Keyboard event dispatch , test focused_widget != NULL before use it.