Changing the UI's Behaviour when clicking on a track

Hi everybody.

I’d like to change the behaviour of the User interface: when clicking on a track it should not be played but queued up (my setup will mostly be used by slightly drunk people… ). I am experienced in coding but These are my first steps in js. Could you give me a hint at which component I should start?