Change keybindings to be more vi like
This commit is contained in:
parent
7615c82d7c
commit
64de25ebcd
7
dmenu.c
7
dmenu.c
@ -478,14 +478,17 @@ keypress(XKeyEvent *ev)
|
|||||||
case XK_g: ksym = XK_Escape; 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: /* fallthrough */
|
//case XK_j: /* fallthrough */
|
||||||
case XK_J: /* fallthrough */
|
case XK_J: /* fallthrough */
|
||||||
case XK_m: /* fallthrough */
|
case XK_m: /* fallthrough */
|
||||||
case XK_M: ksym = XK_Return; ev->state &= ~ControlMask; break;
|
case XK_M: ksym = XK_Return; ev->state &= ~ControlMask; break;
|
||||||
|
case XK_j: /* fallthrough */
|
||||||
case XK_n: ksym = XK_Down; break;
|
case XK_n: ksym = XK_Down; break;
|
||||||
|
case XK_k: /* fallthrough */
|
||||||
case XK_p: ksym = XK_Up; break;
|
case XK_p: ksym = XK_Up; break;
|
||||||
|
|
||||||
case XK_k: /* delete right */
|
//case XK_k: /* delete right */
|
||||||
|
case XK_l: /* delete right */
|
||||||
text[cursor] = '\0';
|
text[cursor] = '\0';
|
||||||
match();
|
match();
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user