Add code to handle cut, copy and paste in popup windows.

This fixes issue [#2648](https://github.com/adobe/brackets/issues/2648)