cargo fmt
This commit is contained in:
parent
dc1f8a753d
commit
b988762955
2 changed files with 6 additions and 3 deletions
|
|
@ -531,7 +531,11 @@ impl HandleEvent for Keyboard {
|
|||
keys,
|
||||
} => {
|
||||
let key: ObjectKey = surface.data().copied().unwrap();
|
||||
if let Some(data) = state.objects.get(key).map(|o| <_ as AsRef<SurfaceData>>::as_ref(o)) {
|
||||
if let Some(data) = state
|
||||
.objects
|
||||
.get(key)
|
||||
.map(|o| <_ as AsRef<SurfaceData>>::as_ref(o))
|
||||
{
|
||||
state.last_kb_serial = Some(serial);
|
||||
state.to_focus = Some(data.window.unwrap());
|
||||
self.server.enter(serial, &data.server, keys);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue