File: escape_key.patch

package info (click to toggle)
newt 0.52.20-8
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,932 kB
  • sloc: ansic: 9,281; python: 713; makefile: 263; sh: 38; xml: 7
file content (18 lines) | stat: -rw-r--r-- 617 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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

Index: newt-0.52.19/form.c
===================================================================
--- newt-0.52.19.orig/form.c
+++ newt-0.52.19/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;