pinentry-dmenu

a pinentry program based on dmenu
git clone anongit@rnpnr.xyz:pinentry-dmenu.git
Log | Files | Refs | Feed | README | LICENSE

Commit: 6fc1c94d12bef7826a91b0b7e7b676a2b49f8891
Parent: 68a35247008c8f5ebf8e23cbdb86cd2c0f3025a1
Author: Moritz Luedecke
Date:   Tue,  5 Sep 2017 23:57:46 +0200

You can abort the dialog and password prompt with CTRL+C

Diffstat:
Mpinentry-dmenu.c | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/pinentry-dmenu.c b/pinentry-dmenu.c @@ -385,6 +385,12 @@ keypress(XKeyEvent *ev) { case XK_N: sel = No; return 1; + case XK_c: + if (ev->state == ControlMask) { + pinentry->canceled = 1; + sel = No; + return 1; + } case XK_Escape: pinentry->canceled = 1; sel = No; @@ -410,6 +416,11 @@ keypress(XKeyEvent *ev) { } insert(NULL, nextrune(cursor, -1) - cursor); break; + case XK_c: + if (ev->state == ControlMask) { + pinentry->canceled = 1; + return 1; + } case XK_Escape: pinentry->canceled = 1; return 1;