Let $X$ be a Hausdorff topological space. A subspace $A\subseteq X$ is called $k$-closed if and only if for every continuous map $h \colon K \to X$ from a compact Hausdorff space the preimage $h^{-1}(A)$ is closed in $K$. Let $\bigcup K_i = X$ be a covering of $X$ where each $K_i$ is a compact Hausdorff subspace. Further assume that for each compact Hausdorff subspace $K \subseteq X$ there exists an index $i$ such that $K$ is a (closed) subset of $K_i$.
My question is now whether it is sufficient for $A$ to be k-closed if $A \cap K_i$ is closed in $K_i$ for all $i$? I am assuming that this is the case but don't know how to prove it... Thanks in advance!