newt icon indicating copy to clipboard operation
newt copied to clipboard

Add response to ESCAPE key, as advertised in the documentation.

Open cjungmann opened this issue 1 year ago • 1 comments

I'm not even sure if you accept pull requests, since don't seem to be any.

I couldn't get the ESCAPE key to exit whiptail forms, so I found the omission and added two lines of code.

cjungmann avatar Mar 16 '23 17:03 cjungmann

Your change would cause all applications (not just whiptail) to react to ESC.

A better way would be to add ESC as a hotkey in whiptail. It should probably be limited to dialogs that have the cancel button, otherwise I suspect it might lead to unexpected behavior.

Another option is to fix the man page to not mention the escape key.

mlichvar avatar Mar 20 '23 08:03 mlichvar