Commit 18fd3957 authored by claes's avatar claes

Ctrl keys replacing PF keys

parent cee6758e
......@@ -151,14 +151,18 @@
#endif
#define RTT_K_DELETE 127
#define RTT_K_BACKSPACE 8
#define RTT_K_CTRLA 1
#define RTT_K_CTRLB 2
#define RTT_K_CTRLC 3
#define RTT_K_CTRLD 4
#define RTT_K_CTRLE 5
#define RTT_K_CTRLF 6
#define RTT_K_CTRLH 8
#define RTT_K_CTRLK 11
#define RTT_K_CTRLL 12
#define RTT_K_CTRLN 14
#define RTT_K_CTRLR 18
#define RTT_K_CTRLT 20
#define RTT_K_CTRLV 22
#define RTT_K_CTRLW 23
#define RTT_K_CTRLZ 26
......
......@@ -73,7 +73,7 @@ extern int rtt_noredraw;
#ifdef RTT_MENU_MODULE
/* Datasttning endast i modulen rs_rtt_menu */
char rtt_version[10] = "V3.2-0";
char rtt_version[10] = "V4.0.0";
menu_ctx rtt_collectionmenuctx = 0;
rtt_t_menu_upd *rtt_collectionmenulist = 0;
menu_ctx rtt_alarm_ctx = 0;
......
......@@ -17,9 +17,9 @@ a number of functions that is specific for each item.\n\
The following keys are defined.\n\n\
ARROWS Navigate in the menu and select an item.\n\
RETURN Execute a function or display a child menu if there is one.\n\
PF1 Execute some function if specified.\n\
PF2 Execute some function if specified.\n\
PF3 Set the value of the current item.\n\
PF1 or CTRL/A Execute some function if specified.\n\
PF2 or CTRL/T Execute some function if specified.\n\
PF3 or CTRL/E Set the value of the current item.\n\
PF4 or CTRL/R Go back to previous menu.\n\
NEXT SIDE or CTRL/F Go to next side of the menu.\n\
PREV SIDE or CTRL/D Go to previous side of the menu.\n\
......@@ -38,9 +38,9 @@ a number of functions, show children or attributes, set the value of\n\
an attribute. The following keys are defined.\n\n\
ARROWS Navigate in the menu and select an object.\n\
RETURN Display the children in the object hierarchy of the object.\n\
PF1 Show the attributes of the object.\n\
PF2 Debug the children of the object.\n\
PF3 Set the value of a parameter.\n\
PF1 or CTRL/A Show the attributes of the object.\n\
PF2 or CTRL/T Debug the children of the object.\n\
PF3 or CTRL/E Set the value of a parameter.\n\
PF4 or CTRL/R Go back to previous menu.\n\
NEXT SIDE or CTRL/F Go to next side of the menu.\n\
PREV SIDE or CTRL/D Go to previous side of the menu.\n\
......
......@@ -246,7 +246,10 @@ int rtt_init_state_table()
state_table[0][RTT_K_CTRLD] = RTT_TERM + RTT_K_PREVPAGE;
state_table[0][RTT_K_CTRLF] = RTT_TERM + RTT_K_NEXTPAGE;
state_table[0][RTT_K_CTRLH] = RTT_TERM + RTT_K_HELP;
state_table[0][18] = RTT_TERM + RTT_K_PF4;
state_table[0][RTT_K_CTRLA] = RTT_TERM + RTT_K_PF1;
state_table[0][RTT_K_CTRLT] = RTT_TERM + RTT_K_PF2;
state_table[0][RTT_K_CTRLE] = RTT_TERM + RTT_K_PF3;
state_table[0][RTT_K_CTRLR] = RTT_TERM + RTT_K_PF4;
state_table[0][RTT_K_ESCAPE] = 1;
state_table[0][155] = 2;
state_table[0][143] = 3;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment