From 52858d71ac976d016b2220a73e5017fcd648b9b0 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Fri, 7 Feb 2003 23:44:58 +0000 Subject: [PATCH] Home/End now move to first/last item respectively. --- src/uifc/uifcfltk.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/uifc/uifcfltk.cpp b/src/uifc/uifcfltk.cpp index 187c90c63f..73853ee3c3 100644 --- a/src/uifc/uifcfltk.cpp +++ b/src/uifc/uifcfltk.cpp @@ -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); } -- GitLab