Suppose we have a canonical transform $(q,p)\to(Q,P)$ generated by a function $F=F(q,Q,t)$ of type 1. This gives us the following partial derivative relations:
$$p(Q,P,t)=\frac{\partial F}{\partial q}(q(Q,P,t),Q,t)\qquad P(q,p,t)=-\frac{\partial F}{\partial Q}(q,Q(q,p,t),t)\qquad K(Q,P,t)=H(q,p,t)+\frac{\partial F}{\partial t}(q,Q,t).\tag{1}$$
I am struggling to verify that
$$\dot{p}=\frac{d}{dt}\left(\frac{\partial F}{\partial q}\right)=-\frac{\partial H}{\partial q}\qquad \dot{P}=-\frac{d}{dt}\left(\frac{\partial F}{\partial Q}\right)=-\frac{\partial K}{\partial Q}\tag{2}$$
For the first one, I found that
$$\dot{p}=\frac{d}{dt}\left(\frac{\partial F}{\partial q}\right)=\frac{\partial}{\partial q}\left(\frac{dF}{dt}\right)=\frac{\partial}{\partial q}\left(\frac{\partial F}{\partial q}\dot{q}+\frac{\partial F}{\partial Q}\dot{Q}+\frac{\partial F}{\partial t}\right)=\frac{\partial}{\partial q}\left(\frac{\partial F}{\partial q}\dot{q}+\frac{\partial F}{\partial Q}\dot{Q}+K-H\right).\tag{3}$$
I am not sure how to justify that the first three terms inside the parentheses vanish. My issue is that I am not sure what does it mean to take a partial derivative with respect to $q$ mean. It means to differentiate w.r.t $q$ while treating variables $Q$ and $t$ constant? I am confused what variables the terms $\frac{\partial F}{\partial q}\dot{q}$ and $\frac{\partial F}{\partial Q}\dot{Q}$ depend on.