Note in comments that checkbox navigation has been fixed on UE master but not released yet

This commit is contained in:
Steve Streeting 2021-03-02 15:34:45 +00:00
parent e440063d3e
commit cf69450300

View File

@ -56,8 +56,8 @@ void SFocusableCheckBox::Construct(const FArguments& InArgs)
FReply SFocusableCheckBox::OnKeyDown(const FGeometry& MyGeometry, const FKeyEvent& InKeyEvent) FReply SFocusableCheckBox::OnKeyDown(const FGeometry& MyGeometry, const FKeyEvent& InKeyEvent)
{ {
// Default behaviour is to return Unhandled for ANY keys apart from Accept, which breaks keyboard nav // Default 4.26.1 behaviour is to return Unhandled for ANY keys apart from Accept, which breaks keyboard nav
// I'm sure this is a bug // This is a bug and it's been fixed in the source version but not released yet, so work around it
if (FSlateApplication::Get().GetNavigationActionFromKey(InKeyEvent) == EUINavigationAction::Accept) if (FSlateApplication::Get().GetNavigationActionFromKey(InKeyEvent) == EUINavigationAction::Accept)
{ {
// for accept, let the immediate superclass do it // for accept, let the immediate superclass do it