From 881321595ea732e3ca023f7ac224168781120724 Mon Sep 17 00:00:00 2001 From: EdisonJwa Date: Sat, 16 May 2026 02:06:02 +0800 Subject: [PATCH] test(ptt): use capital 'Space' in set_binding_updates_descriptor_watch The Windows Raw Input backend's keymap is case-sensitive; the test passed lowercase 'space' which works for the Focused fallback on Linux but fails on Windows where resolve_binding returns InvalidBinding. Use the same canonical 'Space' string the bind dialog produces in real use. --- core/chanora_core/src/ptt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/chanora_core/src/ptt.rs b/core/chanora_core/src/ptt.rs index 5779e54..bdf31b3 100644 --- a/core/chanora_core/src/ptt.rs +++ b/core/chanora_core/src/ptt.rs @@ -327,7 +327,7 @@ mod tests { let _ = desc_rx.borrow_and_update(); let binding = PttBinding { input_class: chanora_audio::PttInputClass::Keyboard, - platform_key: "space".to_string(), + platform_key: "Space".to_string(), }; let new_desc = controller.set_binding(binding.clone()).await.unwrap(); assert_eq!(new_desc.backend_id, controller.descriptor().await.backend_id);