Browse Source

Merge pull request #7021 from timunie/fix/CalendarPageSwitchDoNotChangeSelection

Fix: [Calendar] pointer wheel and page keys should not change the selection
pull/7080/head
Steven Kirk 5 years ago
committed by GitHub
parent
commit
6798e209e2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      src/Avalonia.Controls/Calendar/Calendar.cs

10
src/Avalonia.Controls/Calendar/Calendar.cs

@ -1903,6 +1903,11 @@ namespace Avalonia.Controls
}
internal void ProcessPageDownKey(bool shift)
{
if (!shift)
{
OnNextClick();
return;
}
switch (DisplayMode)
{
case CalendarMode.Month:
@ -1927,6 +1932,11 @@ namespace Avalonia.Controls
}
internal void ProcessPageUpKey(bool shift)
{
if (!shift)
{
OnPreviousClick();
return;
}
switch (DisplayMode)
{
case CalendarMode.Month:

Loading…
Cancel
Save