Detect clicks on files