Skip to content

Commit

Permalink
Label: don't allow focus unless the text is selectable
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtynjala committed Apr 1, 2024
1 parent f3e0269 commit 1c072da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/feathers/controls/Label.hx
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,10 @@ class Label extends FeathersControl implements ITextControl implements IHTMLText
return this._selectable && this._enabled && this.rawTabEnabled;
}

override private function get_focusEnabled():Bool {
return this._selectable && super.focusEnabled;
}

@:dox(hide)
public var stageFocusTarget(get, never):InteractiveObject;

Expand Down

0 comments on commit 1c072da

Please sign in to comment.