mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
make missed input forwarding non-fatal
This commit is contained in:
parent
09046854db
commit
e2f335ec3a
1 changed files with 4 additions and 1 deletions
|
|
@ -504,7 +504,10 @@ fn wrapped_main() -> ! {
|
|||
let buffer = unsafe { Buffer::from_memory_message(msg.body.memory_message().unwrap()) };
|
||||
let inputline = buffer.to_original::<String::<4000>, _>().unwrap();
|
||||
log::debug!("received input line, forwarding on... {}", inputline);
|
||||
context_mgr.forward_input(inputline).expect("couldn't forward input line to focused app");
|
||||
match context_mgr.forward_input(inputline) {
|
||||
Err(e) => log::warn!("InputLine missed its target {:?}; input ignored", e),
|
||||
_ => (),
|
||||
}
|
||||
log::debug!("returned from forward_input");
|
||||
},
|
||||
Some(Opcode::KeyboardEvent) => msg_scalar_unpack!(msg, k1, k2, k3, k4, {
|
||||
|
|
|
|||
Loading…
Reference in a new issue