Skip to content
Snippets Groups Projects
Commit 52858d71 authored by deuce's avatar deuce
Browse files

Home/End now move to first/last item respectively.

parent 94767c33
No related branches found
No related tags found
No related merge requests found
......@@ -399,6 +399,18 @@ int UIFC_Button::handle(int event) {
parent()->child(i)->handle(FL_FOCUS);
return(1);
}
if(key==FL_HOME) {
i=0;
Fl::focus(parent()->child(i));
parent()->child(i)->handle(FL_FOCUS);
return(1);
}
if(key==FL_End) {
i=parent()->children*()-3;
Fl::focus(parent()->child(i));
parent()->child(i)->handle(FL_FOCUS);
return(1);
}
}
return Fl_Button::handle(event);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment