(
Jump to the original submission)
Sat 02 Aug 2008 05:20:24 PM UTC, SVN revision 4756:
[task #4950] Main menu is usable using keyboard (up/down/enter)
(Browse SVN revision 4756) |
Thu 01 May 2008 05:04:29 PM UTC, comment #5:
I reopen this task.
|
Wed 16 Jan 2008 01:41:54 PM UTC, comment #4:
will be done with https://gna.org/task/index.php?5370
|
Tue 17 Jul 2007 09:34:40 PM UTC, SVN revision 2830:
Work on the task #4950 : Make menu usable using only with the keyboard. Actually it just updating display. You can use up/down arrow to navigate through the button. But if you press enter, you will be bring to the play menu. Sory, you'll have to wait :)
(Browse SVN revision 2830) |
Tue 17 Jul 2007 03:31:34 PM UTC, comment #2:
work in progress.
void WidgetList::SetFocusOnNextWidget()
{
printf("Widget = %d\n", (int)current_selected);
// No widget => exit
if(widget_list.size() == 0) {
current_selected = NULL;
return;
}
// Previous selection ?
if(current_selected != NULL)
current_selected->Unselect();
else {
printf("First selection\n");
current_selected = (*widget_list.begin());
current_selected->Select();
return;
}
// Setting previous to NULL and find next widget
std::list<Widget*>::iterator w = widget_list.begin();
for(; w != widget_list.end(); w++) {
printf("one iteration\n");
if(current_selected == (*w))
break;
}
printf("skip one\n");
w++;
// The next widget is not the end ?
if(w != widget_list.end()) {
printf("selection of next\n");
current_selected = (*w);
} else {
printf("selection of first one\n");
current_selected = (*widget_list.begin());
}
current_selected->Select();
}
|
Mon 16 Jul 2007 02:57:06 PM UTC, comment #1:
Work in progress.
(file #2586)
|
Thu 22 Mar 2007 07:50:12 PM UTC, original submission:
Currently, only ENTER and ESCAPE key are managed in the menus. ENTER valids and ESCAPE cancels.
It should be interesting to manage, at least, arrow keys in main menu for example.
|
Depends on the following items: None found
Items that depend on this one: None found
Follow 8 latest changes.