@@ -601,7 +601,7 @@ void ShowResults(int orderedWordCount, int totalWordCount)
601
601
// m_ClueLabel.style.display = DisplayStyle.None;
602
602
603
603
// Ensure the clue label always the same space in the view so do not hide it.
604
- m_ClueLabel . text = " " ;
604
+ m_ClueLabel . text = "" ;
605
605
m_ClueLabel . style . visibility = Visibility . Hidden ;
606
606
}
607
607
@@ -679,7 +679,7 @@ void OnLetterCardsChanged()
679
679
{
680
680
var card = new UITkLetterCard ( ) ;
681
681
m_LetterCardContainer . Add ( card ) ;
682
- card . text = letterCard . letter . ToString ( ) ;
682
+ card . text = letterCard . letter . ToString ( ) . ToUpper ( ) ;
683
683
card . name = letterCard . letter . ToString ( ) ;
684
684
card . GetOrCreateAccessibleProperties ( ) . label = card . text ;
685
685
card . dropped += ( oldIndex , newIndex ) =>
@@ -698,7 +698,7 @@ void StateTheLetters()
698
698
{
699
699
// TODO: This should be localized.
700
700
var listCardMessage = "The letters are now " + string . Join ( ", " ,
701
- m_Model . letterCards . Select ( c => c . letter ) . ToArray ( ) ) ;
701
+ m_Model . letterCards . Select ( c => " \" " + c . letter + " \" " ) . ToArray ( ) ) ;
702
702
AssistiveSupport . notificationDispatcher . SendAnnouncement ( listCardMessage ) ;
703
703
Debug . Log ( listCardMessage ) ;
704
704
}
@@ -824,13 +824,14 @@ void MoveCard(bool shouldMoveLeft, int count = 1)
824
824
if ( moved )
825
825
{
826
826
// TODO: This should be localized.
827
- var message = $ "Moved { selectedCardText } { ( shouldMoveLeft ? "before" : "after" ) } { otherCardText } ";
827
+ var message = $ "Moved \" { selectedCardText } \" { ( shouldMoveLeft ? "before" : "after" ) } " +
828
+ $ "\" { otherCardText } \" ";
828
829
829
830
// Announce that the card was moved. Give a bit of time for the layout change notification to be
830
831
// processed first so that the announcement is not interrupted by the focus change.
831
832
m_MainView . schedule . Execute ( ( ) =>
832
833
AssistiveSupport . notificationDispatcher . SendAnnouncement ( message )
833
- ) . ExecuteLater ( 200 ) ;
834
+ ) . ExecuteLater ( 200 ) ;
834
835
}
835
836
836
837
/*var accElement = draggable.transform.GetComponent<AccessibleElement>();
@@ -840,7 +841,7 @@ void MoveCard(bool shouldMoveLeft, int count = 1)
840
841
var index = draggable.transform.GetSiblingIndex();
841
842
var otherSiblingIndex = shouldMoveLeft ? index + 1 : index - 1;
842
843
var otherSibling = draggable.transform.parent.GetChild(otherSiblingIndex);
843
- var message = $"Moved {draggable.name} {(shouldMoveLeft ? "before" : "after")} {otherSibling.name}";
844
+ var message = $"Moved \" {draggable.name}\" {(shouldMoveLeft ? "before" : "after")} \" {otherSibling.name}\" ";
844
845
845
846
// Announce that the card was moved.
846
847
AssistiveSupport.notificationDispatcher.SendAnnouncement(message);
0 commit comments