Skip to content

Commit 4994982

Browse files
MattHeffronmasinter
authored andcommitted
Adds the non-keypad arrow keys to be detected.
With additional Medley calls to KEYACTION (below), they should work in TTYIN (i.e., XCL and Interlisp EXECs). I didn't try TEDIT. They are unrecognized in SEDIT. (In any case, their use there probably is pretty restricted by the nature of SEDIT.) (KEYACTION 'KEYPAD8 '(("Meta,^" 56 NOLOCKSHIFT) . IGNORE)) (KEYACTION 'KEYPAD6 '(("Meta,>" 54 NOLOCKSHIFT) . IGNORE)) (KEYACTION 'KEYPAD4 '(("Meta,<" 52 NOLOCKSHIFT) . IGNORE)) (KEYACTION 'KEYPAD2 '(("Meta,^J" 50 NOLOCKSHIFT) . IGNORE))
1 parent 40d4fca commit 4994982

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: inc/XKeymap.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -221,17 +221,17 @@ static const int generic_X_keymap[] = {
221221
/* keypad digit assignments above, try assigning */
222222
/* the new arrow-key key#s assigned for RS/6000 */
223223
/* Failing that, try assigning the keypad #s. */
224+
1, 84, XK_Left,
224225
0, 129, XK_Left,
225-
0, 84, XK_Left,
226226

227+
1, 82, XK_Up,
227228
0, 130, XK_Up,
228-
0, 82, XK_Up,
229229

230+
1, 69, XK_Down,
230231
0, 131, XK_Down,
231-
0, 69, XK_Down,
232232

233+
1, 87, XK_Right,
233234
0, 132, XK_Right,
234-
0, 87, XK_Right,
235235

236236
0, 93, XK_Multi_key, /* Expand, Sun type-4 */
237237
0, 93, XK_Alt_R, /* Expand, RH Alt key */

0 commit comments

Comments
 (0)