From 0c20f1dac1cd50bebe6018dc91fc0a39999f76ca Mon Sep 17 00:00:00 2001 From: bunnie Date: Sat, 27 Feb 2021 15:53:10 +0800 Subject: [PATCH] add a test character for hanzi plane --- services/keyboard/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/keyboard/src/main.rs b/services/keyboard/src/main.rs index 94e5dac60..59f24a354 100644 --- a/services/keyboard/src/main.rs +++ b/services/keyboard/src/main.rs @@ -142,7 +142,7 @@ fn map_qwerty(code: RowCol) -> ScanCode { (7, 9) => ScanCode{key: Some(0xd_u8.into()), shift: Some(0xd_u8.into()), hold: Some(0xd_u8.into()), alt: Some(0xd_u8.into())}, // carriage return (8, 5) => ScanCode{key: Some(0xf_u8.into()), shift: Some(0xf_u8.into()), hold: Some(0xf_u8.into()), alt: Some(0xf_u8.into())}, // shift in (blue shift) - (8, 6) => ScanCode{key: Some(','), shift: Some(0xe_u8.into()), hold: Some(0xe_u8.into()), alt: None}, // 0xe is shift out (sym) + (8, 6) => ScanCode{key: Some(','), shift: Some(0xe_u8.into()), hold: Some('富'), alt: None}, // 0xe is shift out (sym) '富' -> just for testing hanzi plane (8, 7) => ScanCode{key: Some(' '), shift: Some(' '), hold: None /* hold of none -> repeat */, alt: None}, (8, 8) => ScanCode{key: Some('.'), shift: Some('😃'), hold: Some('😃'), alt: None}, (8, 9) => ScanCode{key: Some(0xf_u8.into()), shift: Some(0xf_u8.into()), hold: Some(0xf_u8.into()), alt: Some(0xf_u8.into())}, // shift in (blue shift)