Skip to content

Commit

Permalink
Shell|Curses: Mapped all function keys to Qt keys
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Feb 5, 2013
1 parent 27e4d24 commit 937a4c4
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions doomsday/tools/shell/shell-text/src/cursesapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,54 @@ struct CursesApp::Instance
mods = KeyEvent::Control;
break;

case KEY_F(1):
code = Qt::Key_F1;
break;

case KEY_F(2):
code = Qt::Key_F2;
break;

case KEY_F(3):
code = Qt::Key_F3;
break;

case KEY_F(4):
code = Qt::Key_F4;
break;

case KEY_F(5):
code = Qt::Key_F5;
break;

case KEY_F(6):
code = Qt::Key_F6;
break;

case KEY_F(7):
code = Qt::Key_F7;
break;

case KEY_F(8):
code = Qt::Key_F8;
break;

case KEY_F(9):
code = Qt::Key_F9;
break;

case KEY_F(10):
code = Qt::Key_F10;
break;

case KEY_F(11):
code = Qt::Key_F11;
break;

case KEY_F(12):
code = Qt::Key_F12;
break;

case 0x18:
code = Qt::Key_X;
mods = KeyEvent::Control;
Expand Down

0 comments on commit 937a4c4

Please sign in to comment.