Skip to content

Commit

Permalink
add accesskit integration that probably does not work right now
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristófer R committed Mar 23, 2024
1 parent c33c9d8 commit cc4a309
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,20 @@ impl eframe::App for TemplateApp {
};

ui.painter().set(where_to_put_background, shape);

// FIXME: Fix accesskit integration.
#[cfg(feature = "accesskit")]
{
let role = accesskit::Role::MultilineTextInput;
crate::text_selection::accesskit_text::update_accesskit_for_text_widget(
ui.ctx(),
id,
cursor_range,
role,
galley_pos,
&galley,
);
}
});
});
}
Expand Down

0 comments on commit cc4a309

Please sign in to comment.