rustdesk 2022-06-03 10:05:51 +08:00
parent 25ca204213
commit c80e2204d9

View File

@ -496,7 +496,8 @@ impl Enigo {
#[inline]
fn map_key_board(&mut self, ch: char) -> CGKeyCode {
// no idea why below char not working with shift, https://github.com/rustdesk/rustdesk/issues/406#issuecomment-1145157327
if ch == '-' || ch == '=' || (ch >= '0' && ch <= '9') {
// seems related to numpad char
if ch == '-' || ch == '=' || ch == '.' || ch == '/' || (ch >= '0' && ch <= '9') {
return self.map_key_board_en(ch);
}
let mut code = 0;