mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-28 08:47:59 +01:00
ComboBox. Wire-up Home/End keys down to listview
This commit is contained in:
@@ -276,13 +276,31 @@ namespace Terminal.Gui {
|
||||
return true;
|
||||
}
|
||||
|
||||
if(e.Key == Key.PageDown) {
|
||||
listview.MovePageDown ();
|
||||
if(e.Key == Key.PageDown) {
|
||||
if (listview.SelectedItem != -1) {
|
||||
listview.MovePageDown ();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
if (e.Key == Key.PageUp) {
|
||||
listview.MovePageUp ();
|
||||
if (e.Key == Key.PageUp) {
|
||||
if (listview.SelectedItem != -1) {
|
||||
listview.MovePageUp ();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
if (e.Key == Key.Home) {
|
||||
if (listview.SelectedItem != -1) {
|
||||
listview.MoveHome ();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
if(e.Key == Key.End) {
|
||||
if(listview.SelectedItem != -1) {
|
||||
listview.MoveEnd ();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user