* Add Bash/emacs style navigation keys

(thanks to Daniel Schuler)
This commit is contained in:
Hisham Muhammad
2010-03-03 21:13:33 +00:00
parent 282f16c4b8
commit b4a63409f5
5 changed files with 20 additions and 0 deletions

View File

@ -184,6 +184,7 @@ void ScreenManager_run(ScreenManager* this, Panel** lastFocus, int* lastKey) {
continue;
}
case KEY_LEFT:
case KEY_CTRLB:
tryLeft:
if (focus > 0)
focus--;
@ -192,6 +193,7 @@ void ScreenManager_run(ScreenManager* this, Panel** lastFocus, int* lastKey) {
goto tryLeft;
break;
case KEY_RIGHT:
case KEY_CTRLF:
case 9:
tryRight:
if (focus < this->itemCount - 1)