Fix for automatic focus of control canvas