KeyTreeView: copy ID-like data without spaces
(cherry picked from commit 004cacd15cbba911eb28c754ac006abbf1d6651a)