mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
Add support for PageUp & PageDown
This commit is contained in:
@@ -162,5 +162,27 @@ namespace Wox
|
||||
OnOnMouseClickItem(item.DataContext as Result);
|
||||
}
|
||||
}
|
||||
|
||||
public void SelectNextPage()
|
||||
{
|
||||
int index = lbResults.SelectedIndex;
|
||||
index += 5;
|
||||
if (index >= lbResults.Items.Count)
|
||||
{
|
||||
index = lbResults.Items.Count - 1;
|
||||
}
|
||||
Select(index);
|
||||
}
|
||||
|
||||
public void SelectPrevPage()
|
||||
{
|
||||
int index = lbResults.SelectedIndex;
|
||||
index -= 5;
|
||||
if (index < 0)
|
||||
{
|
||||
index = 0;
|
||||
}
|
||||
Select(index);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user