File: escape_key.patch

package info (click to toggle)
newt 0.52.14-11.1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 1,548 kB
  • sloc: ansic: 9,098; python: 708; makefile: 235; sh: 14
file content (17 lines) | stat: -rw-r--r-- 606 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Author: Julien-externe BLACHE <julien-externe.blache@edf.fr>
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=584098
Description: Fix to allow ESC key to work in whiptail.
Last-Updated: 2010-06-21
Forwarded: no

diff -ruN newt-0.52.11-old/form.c newt-0.52.11/form.c
--- newt-0.52.11-old/form.c	2009-09-24 16:03:09.000000000 +0100
+++ newt-0.52.11/form.c	2010-06-21 13:09:31.000000000 +0100
@@ -474,6 +474,7 @@
     if (!(form->flags & NEWT_FLAG_NOF12)) {
 	newtFormAddHotKey(co, NEWT_KEY_F12);
     }
+    newtFormAddHotKey (co, NEWT_KEY_ESCAPE);
 
     if (vertBar)
 	form->vertBar = vertBar;