Browse Source

ESCAPE_KEY_on_Forms: add Escape HotKey to forms to restore functionality..

master
tuxd3v 1 month ago
commit
288ccee6ff
2 changed files with 52 additions and 0 deletions
  1. +13
    -0
      debian/patches/fix_ESCAPE_hotkey_on_forms.patch
  2. +39
    -0
      docs/README.md

+ 13
- 0
debian/patches/fix_ESCAPE_hotkey_on_forms.patch View File

@@ -0,0 +1,13 @@
From: tuxd3v <tuxd3v@sapo.pt>
Subject: Fix to add explicitly ESCAPE key, as a hotkey to forms..
--- a/form.c 2021-03-30 19:15:31.129343492 +0100
+++ b/form.c 2021-03-30 19:08:06.737261922 +0100
@@ -479,6 +479,8 @@ newtComponent newtForm(newtComponent ver
if (!(form->flags & NEWT_FLAG_NOF12)) {
newtFormAddHotKey(co, NEWT_KEY_F12);
}
+ /* Bring back ESC key, as a HotKey to forms.. */
+ newtFormAddHotKey (co, NEWT_KEY_ESCAPE);
if (vertBar)
form->vertBar = vertBar;

+ 39
- 0
docs/README.md View File

@@ -0,0 +1,39 @@
# bluez
---

Patches for newt packages

#### Table of contents
* [Introduction](#introduction)
* [Characteristics](#characteristics)
* [Archs](#archs)
* [Testing](#testing)
* [Credits](#credits)

### Introduction:
----
This pacthes will be, automatically, applied when you build several packages from it( from sources.. ).
If you want to apply patches by hand:
```lua
# jump to newt directory
cd newt
patch -p1 < debian/patches/the_patch_you_want_to_apply.patch
```
The newt source code should be patched automatically..

### Characteristics:
----
* Add Escape HotKey to forms.c, to maintain previous behaviour, this will also add this functionality to tools like **whiptail**, and the **libraries**, and such..

### Archs:
----
This paches are Architecture independent, they should be built for any arch were you want support for the newt libraries or tools..

### Testing:
----
Tests were done, and everything is working again, I tested with **lnewt**, the behaviour is restored..

### Credits
----
patches : tuxd3v


Loading…
Cancel
Save