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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
10 additions and
0 deletions
-
src/Avalonia.Controls/Calendar/Calendar.cs
|
|
@ -1903,6 +1903,11 @@ namespace Avalonia.Controls |
|
|
} |
|
|
} |
|
|
internal void ProcessPageDownKey(bool shift) |
|
|
internal void ProcessPageDownKey(bool shift) |
|
|
{ |
|
|
{ |
|
|
|
|
|
if (!shift) |
|
|
|
|
|
{ |
|
|
|
|
|
OnNextClick(); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
switch (DisplayMode) |
|
|
switch (DisplayMode) |
|
|
{ |
|
|
{ |
|
|
case CalendarMode.Month: |
|
|
case CalendarMode.Month: |
|
|
@ -1927,6 +1932,11 @@ namespace Avalonia.Controls |
|
|
} |
|
|
} |
|
|
internal void ProcessPageUpKey(bool shift) |
|
|
internal void ProcessPageUpKey(bool shift) |
|
|
{ |
|
|
{ |
|
|
|
|
|
if (!shift) |
|
|
|
|
|
{ |
|
|
|
|
|
OnPreviousClick(); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
switch (DisplayMode) |
|
|
switch (DisplayMode) |
|
|
{ |
|
|
{ |
|
|
case CalendarMode.Month: |
|
|
case CalendarMode.Month: |
|
|
|