diff --git a/Panel.c b/Panel.c index 348fd2381..805b690cc 100644 --- a/Panel.c +++ b/Panel.c @@ -385,10 +385,12 @@ bool Panel_onKey(Panel* this, int key) { switch (key) { case KEY_DOWN: case KEY_CTRL('N'): + case 'j': this->selected++; break; case KEY_UP: case KEY_CTRL('P'): + case 'k': this->selected--; break; #ifdef KEY_C_DOWN @@ -403,6 +405,7 @@ bool Panel_onKey(Panel* this, int key) { #endif case KEY_LEFT: case KEY_CTRL('B'): + case 'h': if (this->scrollH > 0) { this->scrollH -= MAX(CRT_scrollHAmount, 0); this->needsRedraw = true; @@ -410,6 +413,7 @@ bool Panel_onKey(Panel* this, int key) { break; case KEY_RIGHT: case KEY_CTRL('F'): + case 'l': this->scrollH += CRT_scrollHAmount; this->needsRedraw = true; break; diff --git a/ScreenManager.c b/ScreenManager.c index 8e5f697f6..863c0ef28 100644 --- a/ScreenManager.c +++ b/ScreenManager.c @@ -196,12 +196,9 @@ void ScreenManager_run(ScreenManager* this, Panel** lastFocus, int* lastKey) { case 'j': ch = KEY_DOWN; break; case 'k': ch = KEY_UP; break; case 'l': ch = KEY_RIGHT; break; - case KEY_LEFT: ch = 'h'; break; - case KEY_DOWN: ch = 'j'; break; - case KEY_UP: ch = 'k'; break; - case KEY_RIGHT: ch = 'l'; break; + case 'H': ch = 'h'; break; + case 'J': ch = 'j'; break; case 'K': ch = 'k'; break; - case 'J': ch = 'K'; break; case 'L': ch = 'l'; break; } }