Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Java Data Structures Efficiency! Custom Serialization

Make sure to use the mouse right-click, to copy the video url and not the shortcut Control-C!

Remember that, although Control C is the shortcut key to copy to clipboard, it is also a way to terminate the running application in the terminal. Therefore, you should highlight the video url and use the right-click context menu to copy the video url to the clipboard.

It would be cool if there was a way to override control c, in the application, to allow the shortcut copy to be used, instead of terminating the application.

1 Answer

Allan Clark
Allan Clark
10,810 Points

It all depends on what is your active window. If the running program is the active window then yes it will receive the terminate command if you give it ctrl+c. If you have a browser or other window as your active window, there is no way for the program to receive the ctrl+c command, allowing you to shortcut copy all you want with the program in the back ground.