-
Notifications
You must be signed in to change notification settings - Fork 34
[4.5] More disable for accesskit and fix Node's accesskit related methods.
#587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: blazium-4.5
Are you sure you want to change the base?
[4.5] More disable for accesskit and fix Node's accesskit related methods.
#587
Conversation
7e9b53b to
d164bfa
Compare
Node's accesskit related methods.Node's accesskit related methods.
d164bfa to
9cb4573
Compare
| } | ||
| } | ||
|
|
||
| RID RichTextLabel::get_focused_accessibility_element() const { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get_focused_accessibility_element() doesn't look like it needs to be moved for this if I am not mistaken.
| String accessibility_description; | ||
| #endif // ACCESSKIT_ENABLED | ||
|
|
||
| void _accessibility_notify_enter(Node *p_node); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Were these intended to be in the ACCESSKIT_ENABLED block? If not, they should probably not be moved.
| #endif // ACCESSKIT_ENABLED | ||
| } | ||
|
|
||
| String Window::get_accessibility_name() const { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The binding for this looks to be wrapped in an ACCESSKIT_ENABLED check, is something else using it that the function needs to remain with a return String(); placeholder?
| } | ||
| } | ||
|
|
||
| bool Node::_is_accessibility_enabled() const { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These functions should remain in the original places so upstream changes are less likely to conflict in future merges if possible.
| #endif // ACCESSKIT_ENABLED | ||
| } | ||
|
|
||
| String Control::get_accessibility_name() const { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The binding for this looks to be wrapped in an ACCESSKIT_ENABLED check, is something else using it that the function needs to remain with a return String(); placeholder?
| return ret; | ||
| } | ||
|
|
||
| void Control::set_accessibility_name(const String &p_name) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can these functions be kept in the original positions so upstream changes are less likely to have merge conflicts if possible?
| String get_accessibility_name() const; | ||
|
|
||
| #ifdef ACCESSKIT_ENABLED | ||
| void set_accessibility_live(DisplayServer::AccessibilityLiveMode p_mode); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the addition of set_accessibility_live fixing something?
Following Godot’s modular design approach, this PR cleans up the codebase by disabling sections of unused code that were still active, improving maintainability and reducing unnecessary compilation.
Note: This change also removes some methods from the documentation by default. If there are plans to re-enable this feature in the future, we can add dummy methods to preserve the related documentation entries.