Can we associate ESC key to always close any type of program?

stack

I sometimes hate to move the mouse, just to hit the close button or to press ALT+F4 to terminate a running software/program or an active window. Honestly, I feel more comfortable to simply hit ESC key, (which applies to other programs). Can I make this works to all running software?

Dave

It really depends on the programs you are using. So, an option which might work is Auto Hot Key.

However, it will have possible negative results. For example, only some programs will close with certain commands, so if you mapped ALT F4 to ESC but a program only recognises ALT F4 as the shutdown, then it won't work!

So, you could then map several commands to AutoHotKey, where hitting ESC sends ESC, then Ctrl+F4 then ALT+F4 then CTRL+W and then CTRL+Q etc (no idea how long this list would need to be). Again, the implications of this may not be desirable.

Another issue about mapping the ESC is what happens when you don't want to exit the program but still want to send ESC?

Personally, I would just learn which combination to press. However, you may be better to create a new combination, such as ALT+ESC which sends all the of the possible close commands (listed above as a guide).

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Associate a File Type with a Specific Program

Is There any Way to associate a Value to a Type?

Close dialog when ESC key is pressed

How to bind ESC key to close a `gwindow()` in gWidgets?

Bind a function to Bootstrap Modal Close by ESC key

MODERN - Dialog does not close on ESC key

Close Modal Popup using Esc key on keyboard

Close modal by sending the esc key in the browser with javascript

Can we access the value of a variable from any part of the program in python?

when use type inference? we can always use VAR?

Always automatically choose "Close the program"

Can we join two tables without any common key

any way to associate constant with type in Rust?

How we can define a State variable type Any?

How to force any program to close?

Why should we always close a connection to a database?

Best way to close the program pressing Esc anytime the user wants?

Is it valid to use void* rather than any pointer type if we always static_cast<> it?

Swing: how do I close a dialog when the ESC key is pressed?

React Material-UI Modal close only on ESC key

C# Problems with getting the form to close with the Esc key is pressed

How to capture the pressing of the ESC key to close a Bootstrap Modal

WPF Popup - How to close a WPF popup when the ESC key is pressed

Should we always return by ref if we can?

Can you add an ESC Key shortcut?

Can we assume any pair of following floating point arithmetic statements always produce identical result?

Is there any way in Swift language that we can post compiled classes into the published program?

How harmful can a registry key be if it goes to a specific program that is not a core windows program? Is there any way of telling what it will do?

Press esc to stop and any other key to continue in Python