File: escape_key.patch

package info (click to toggle)
newt 0.52.25-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,196 kB
  • sloc: ansic: 9,336; python: 713; makefile: 276; sh: 37; xml: 7
file content (17 lines) | stat: -rw-r--r-- 592 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Fix to allow ESC key to work in whiptail.
 Last-Updated: 2010-06-21
Bug-Debian: https://bugs.debian.org/584098
Forwarded: no
Author: Julien-externe BLACHE <julien-externe.blache@edf.fr>
Index: newt-0.52.24/form.c
===================================================================
--- newt-0.52.24.orig/form.c
+++ newt-0.52.24/form.c
@@ -479,6 +479,7 @@ newtComponent newtForm(newtComponent ver
     if (!(form->flags & NEWT_FLAG_NOF12)) {
 	newtFormAddHotKey(co, NEWT_KEY_F12);
     }
+    newtFormAddHotKey (co, NEWT_KEY_ESCAPE);
 
     if (vertBar)
 	form->vertBar = vertBar;