Skip to content
Advertisement

How can I build a Trap function with any key

This function exits my script when I press cntr+C, how can i modify it to make it works when I press enter?

JavaScript

Advertisement

Answer

This might help:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement