Unfocus input when virtual keyboard is dismissed

This commit is contained in:
Paul Rouget 2020-07-13 14:04:06 +02:00
parent 967a70bd60
commit 6252d36a14
11 changed files with 91 additions and 2 deletions

View file

@ -663,6 +663,16 @@ where
}
},
WindowEvent::IMEDismissed => {
let msg = ConstellationMsg::IMEDismissed;
if let Err(e) = self.constellation_chan.send(msg) {
warn!(
"Sending IMEDismissed event to constellation failed ({:?}).",
e
);
}
},
WindowEvent::Quit => {
self.compositor.maybe_start_shutting_down();
},