1
0
Fork 0

applied Hiltjo's patch as suggested on the ml to fix ControlMask for C-j and C-m

This commit is contained in:
Anselm R Garbe 2014-09-17 13:40:11 +02:00
parent aa69426670
commit 13a529ce63
2 changed files with 5 additions and 2 deletions

View file

@ -136,6 +136,9 @@ Delete line right
C\-m C\-m
Return Return
.TP .TP
C\-M
Shift-Return
.TP
C\-n C\-n
Down Down
.TP .TP

View file

@ -256,9 +256,9 @@ keypress(XKeyEvent *ev) {
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: ksym = XK_Return; break; case XK_J: /* fallthrough */
case XK_m: /* fallthrough */ case XK_m: /* fallthrough */
case XK_M: ksym = XK_Return; break; case XK_M: ksym = XK_Return; ev->state &= ~ControlMask; break;
case XK_n: ksym = XK_Down; break; case XK_n: ksym = XK_Down; break;
case XK_p: ksym = XK_Up; break; case XK_p: ksym = XK_Up; break;