Skip to content

Commit 055c79b

Browse files
committed
Improve error message with feature accesskit
1 parent d1a98a6 commit 055c79b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

crates/kas-core/src/runner/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,8 @@ enum ProxyAction {
242242
#[cfg(feature = "accesskit")]
243243
impl From<accesskit_winit::Event> for ProxyAction {
244244
fn from(event: accesskit_winit::Event) -> Self {
245-
ProxyAction::AccessKit(event.window_id, event.window_event)
245+
compile_error!("AccessKit is not compatible with the current winit version")
246+
// ProxyAction::AccessKit(event.window_id, event.window_event)
246247
}
247248
}
248249

crates/kas-core/src/runner/window.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,7 @@ impl<A: AppData, G: GraphicsInstance, T: Theme<G::Shared>> Window<A, G, T> {
240240
let winit_id = window.id();
241241

242242
#[cfg(feature = "accesskit")]
243-
let accesskit =
244-
accesskit_winit::Adapter::with_event_loop_proxy(el, &window, el.create_proxy());
243+
let accesskit = todo!(); // FIXME: accesskit_winit::Adapter::with_event_loop_proxy(el, &window, el.create_proxy());
245244

246245
let window = WindowData {
247246
window,
@@ -307,7 +306,7 @@ impl<A: AppData, G: GraphicsInstance, T: Theme<G::Shared>> Window<A, G, T> {
307306
};
308307

309308
#[cfg(feature = "accesskit")]
310-
window.accesskit.process_event(&window.window, &event);
309+
todo!(); // FIXME: window.accesskit.process_event(&window.window, &event);
311310

312311
let (apply_size, resize, poll) = match event {
313312
WindowEvent::Moved(_) | WindowEvent::Destroyed => return false,
@@ -481,7 +480,7 @@ impl<A: AppData, G: GraphicsInstance, T: Theme<G::Shared>> Window<A, G, T> {
481480
let resize = self.ev_state.with(shared, theme.size(), window, |cx| {
482481
cx.handle_accesskit_action(self.widget.as_node(data), request);
483482
});
484-
if *resize {
483+
if resize.is_some() {
485484
self.apply_size(data, false, true);
486485
}
487486
}

0 commit comments

Comments
 (0)