jumping to an entry beginning with a character works now :)
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Wed, 30 Nov 2005 14:22:24 +0000 (14:22 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Wed, 30 Nov 2005 14:22:24 +0000 (14:22 +0000)
lib/gui/elistbox.cpp

index 873cc937cb30807aaf430cd585c4d9e8f52360fe..ff5e2690bbbb0c126009a5f4123b364029b0d514 100644 (file)
@@ -124,7 +124,9 @@ void eListbox::moveSelection(int dir)
 void eListbox::moveSelectionTo(int index)
 {
        printf("Moving to listbox-entry with index %d\n", index);
-       // TODO: implement it
+       m_content->cursorHome();
+       m_content->cursorMove(index);
+       moveSelection(justCheck);
 }
 
 int eListbox::event(int event, void *data, void *data2)