X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Ftext-controls%2Ftext-label-impl.cpp;h=3ecb376a76eea3fc4354e212891b4384a5c355d0;hb=a4fa71ebecb9ed103fa3e64004e99b728f9190c2;hp=d5da6eb119237326cbf6a02b344ad6f3b9a574d4;hpb=f546dd5d83a968e573f8f053a01ce43df32c71a0;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/text-controls/text-label-impl.cpp b/dali-toolkit/internal/controls/text-controls/text-label-impl.cpp index d5da6eb..3ecb376 100755 --- a/dali-toolkit/internal/controls/text-controls/text-label-impl.cpp +++ b/dali-toolkit/internal/controls/text-controls/text-label-impl.cpp @@ -721,6 +721,9 @@ void TextLabel::OnInitialize() self.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH ); self.SetResizePolicy( ResizePolicy::DIMENSION_DEPENDENCY, Dimension::HEIGHT ); + // Enable highlightability + self.SetProperty( Toolkit::DevelControl::Property::ACCESSIBILITY_HIGHLIGHTABLE, true ); + // Enable the text ellipsis. mController->SetTextElideEnabled( true ); // If false then text larger than control will overflow @@ -986,6 +989,11 @@ std::string TextLabel::AccessibleImpl::GetNameRaw() return slf.GetProperty( Toolkit::TextLabel::Property::TEXT ).Get< std::string >(); } +Property::Index TextLabel::AccessibleImpl::GetNamePropertyIndex() +{ + return Toolkit::TextLabel::Property::TEXT; +} + std::string TextLabel::AccessibleImpl::GetText( size_t startOffset, size_t endOffset ) { @@ -1069,7 +1077,7 @@ Dali::Accessibility::Range TextLabel::AccessibleImpl::GetTextAtOffset( if (boundary == Dali::Accessibility::TextBoundary::LINE) counter++; } - if ((counter - 1) == offset) + if ((counter > 0) && ((counter - 1) == offset)) { range.content = txt.substr(start, index - start + 1); range.startOffset = start;