close
Attachments you submit will be routed for moderation. If you have an account, please log in first.

Ticket #36: vuurmuur_conf-dont_go_down_after_help.patch

File vuurmuur_conf-dont_go_down_after_help.patch, 590 bytes (added by Tiger!P, 12 years ago)

This goes back to the field where the help was invoked from (and fix a minor typo)

  • navigation.c

     
    127127                case 9:         /* tab */
    128128                        return(-1);
    129129               
    130                 case KEY_F(5):  /* f6  */
     130                case KEY_F(5):  /* f5  */
    131131                case KEY_F(6):  /* f6  */
    132132                case KEY_F(10): /* f10 */
    133133                case KEY_F(12): /* f12 for help */
    134134                case 27:        /* esc */
    135135
    136136                        form_driver(form, REQ_NEXT_FIELD); // this is to make sure the field is saved
     137                        form_driver(form, REQ_PREV_FIELD); /* But we don't want to move down */
    137138                        return(-1);
    138139               
    139140                case 32: // space