We have to use this struct:
typedef struct
{
/* basic editing */
long del_prev_char; /* delete previous char */
long del_next_char; /* delete next char */
long del_prev_word; /* delete previous word */
long del_next_word; /* delete next word */
/* movement */
long moveto_prev_line; /* one line up */
long moveto_next_line; /* one line down */
long moveto_prev_char; /* one char left */
long moveto_next_char; /* one char right */
long moveto_prev_word; /* one word left */
long moveto_next_word; /* one word right */
long moveto_prev_page; /* one page up */
long moveto_next_page; /* one page down */
long moveto_bol; /* move to begining of line */
long moveto_eol; /* move to end of line */
long moveto_bof; /* move to begin of file */
long moveto_eof; /* move to end of file */
/* misc. stuff */
long transpose; /* switch two char positions */
long paste; /* paste the edit buffer */
long backspace; /* another del_prev_char */
long del_to_bol; /* cut to begining of line */
long del_to_eol; /* cut to end of line */
long clear_field; /* delete everything */
long del_to_eos; /* not implemented */
long reserverd[4]; /* filler */
}
FL_EditKeymap;
and this function
FL_EXPORT void fl_set_input_editkeymap(const FL_EditKeymap *);
for that.
Ideally we should map those to the the bindings that we already have
enabled with bindfiles and bind.
Lgb