Skip to content

Commit

Permalink
disable keyboard support until handled properly
Browse files Browse the repository at this point in the history
  • Loading branch information
feschber committed Dec 9, 2023
1 parent d8f1f3f commit c060020
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/backend/consumer/macos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ impl EventConsumer for MacOSConsumer {
}
Event::Keyboard(keyboard_event) => match keyboard_event {
KeyboardEvent::Key { time: _, key, state } => {
let code = CGKeyCode::from_le(key as u16); // FIXME byteorder
/*
let code = CGKeyCode::from_le(key as u16);
let event = match CGEvent::new_keyboard_event(
self.event_source.clone(),
code,
Expand All @@ -159,6 +160,7 @@ impl EventConsumer for MacOSConsumer {
}
};
event.post(CGEventTapLocation::HID);
*/
}
KeyboardEvent::Modifiers { .. } => {}
}
Expand All @@ -171,4 +173,4 @@ impl EventConsumer for MacOSConsumer {
async fn notify(&mut self, _client_event: ClientEvent) { }

async fn destroy(&mut self) { }
}
}

0 comments on commit c060020

Please sign in to comment.