mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
HyperlinkButton: Use AccessibilityHandler with hyperlink role
This commit is contained in:
parent
7612f446b5
commit
5e626e1c2b
2 changed files with 7 additions and 0 deletions
|
|
@ -121,4 +121,9 @@ void HyperlinkButton::paintButton (Graphics& g,
|
|||
true);
|
||||
}
|
||||
|
||||
std::unique_ptr<AccessibilityHandler> HyperlinkButton::createAccessibilityHandler()
|
||||
{
|
||||
return std::make_unique<ButtonAccessibilityHandler> (*this, AccessibilityRole::hyperlink);
|
||||
}
|
||||
|
||||
} // namespace juce
|
||||
|
|
|
|||
|
|
@ -111,6 +111,8 @@ protected:
|
|||
void paintButton (Graphics&, bool, bool) override;
|
||||
|
||||
private:
|
||||
std::unique_ptr<AccessibilityHandler> createAccessibilityHandler() override;
|
||||
|
||||
//==============================================================================
|
||||
using Button::clicked;
|
||||
Font getFontToUse() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue