Browse Source

add ^G escape keybinding

master
Karl F 13 years ago
parent
commit
50145384c8
2 changed files with 4 additions and 0 deletions
  1. +3
    -0
      dmenu.1
  2. +1
    -0
      dmenu.c

+ 3
- 0
dmenu.1 View File

@ -107,6 +107,9 @@ End
C\-f C\-f
Right Right
.TP .TP
C\-g
Escape
.TP
C\-h C\-h
Backspace Backspace
.TP .TP


+ 1
- 0
dmenu.c View File

@ -251,6 +251,7 @@ keypress(XKeyEvent *ev) {
case XK_d: ksym = XK_Delete; break; case XK_d: ksym = XK_Delete; break;
case XK_e: ksym = XK_End; break; case XK_e: ksym = XK_End; break;
case XK_f: ksym = XK_Right; break; case XK_f: ksym = XK_Right; break;
case XK_g: ksym = XK_Escape; break;
case XK_h: ksym = XK_BackSpace; break; case XK_h: ksym = XK_BackSpace; break;
case XK_i: ksym = XK_Tab; break; case XK_i: ksym = XK_Tab; break;
case XK_j: ksym = XK_Return; break; case XK_j: ksym = XK_Return; break;


Loading…
Cancel
Save