Add Mapping for j/k to up/down
authorJulien Desfossez <julien.desfossez@efficios.com>
Mon, 23 Apr 2012 15:06:44 +0000 (11:06 -0400)
committerJulien Desfossez <julien.desfossez@efficios.com>
Mon, 23 Apr 2012 15:06:44 +0000 (11:06 -0400)
Vi aficinados will understand.

Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
src/cursesdisplay.c

index 82bb81097f758a80568fb615e68ccf9cd67e92ae..304419d83e83a369f720032ab7f2b7c9fba54e95 100644 (file)
@@ -1195,6 +1195,7 @@ void *handle_keyboard(void *p)
        while((ch = getch())) {
                switch(ch) {
                /* Move the cursor and scroll */
+               case 'j':
                case KEY_DOWN:
                        if (pref_panel_visible) {
                                pref_line_selected++;
@@ -1214,6 +1215,7 @@ void *handle_keyboard(void *p)
                        break;
                case KEY_NPAGE:
                        break;
+               case 'k':
                case KEY_UP:
                        if (pref_panel_visible) {
                                if (pref_line_selected > 0)
This page took 0.025296 seconds and 4 git commands to generate.