fix formatting issue
This commit is contained in:
1 file changed
+36
-12
@@ -134,9 +134,13 @@ fn mouse_up() {
|
|||||||
modifiers: KeyModifiers::NONE,
|
modifiers: KeyModifiers::NONE,
|
||||||
}));
|
}));
|
||||||
cx.render(rsx! {
|
cx.render(rsx! {
|
||||||
div { width: "100%", height: "100%", onmouseup: move |_| {
|
div {
|
||||||
|
width: "100%",
|
||||||
|
height: "100%",
|
||||||
|
onmouseup: move |_| {
|
||||||
tui_ctx.quit();
|
tui_ctx.quit();
|
||||||
} }
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -169,9 +173,13 @@ fn mouse_enter() {
|
|||||||
modifiers: KeyModifiers::NONE,
|
modifiers: KeyModifiers::NONE,
|
||||||
}));
|
}));
|
||||||
cx.render(rsx! {
|
cx.render(rsx! {
|
||||||
div { width: "50%", height: "50%", onmouseenter: move |_| {
|
div {
|
||||||
|
width: "50%",
|
||||||
|
height: "50%",
|
||||||
|
onmouseenter: move |_| {
|
||||||
tui_ctx.quit();
|
tui_ctx.quit();
|
||||||
} }
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -204,9 +212,13 @@ fn mouse_exit() {
|
|||||||
modifiers: KeyModifiers::NONE,
|
modifiers: KeyModifiers::NONE,
|
||||||
}));
|
}));
|
||||||
cx.render(rsx! {
|
cx.render(rsx! {
|
||||||
div { width: "50%", height: "50%", onmouseenter: move |_| {
|
div {
|
||||||
|
width: "50%",
|
||||||
|
height: "50%",
|
||||||
|
onmouseenter: move |_| {
|
||||||
tui_ctx.quit();
|
tui_ctx.quit();
|
||||||
} }
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -239,9 +251,13 @@ fn mouse_move() {
|
|||||||
modifiers: KeyModifiers::NONE,
|
modifiers: KeyModifiers::NONE,
|
||||||
}));
|
}));
|
||||||
cx.render(rsx! {
|
cx.render(rsx! {
|
||||||
div { width: "100%", height: "100%", onmousemove: move |_| {
|
div {
|
||||||
|
width: "100%",
|
||||||
|
height: "100%",
|
||||||
|
onmousemove: move |_| {
|
||||||
tui_ctx.quit();
|
tui_ctx.quit();
|
||||||
} }
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -314,9 +330,13 @@ fn click() {
|
|||||||
modifiers: KeyModifiers::NONE,
|
modifiers: KeyModifiers::NONE,
|
||||||
}));
|
}));
|
||||||
cx.render(rsx! {
|
cx.render(rsx! {
|
||||||
div { width: "100%", height: "100%", onclick: move |_| {
|
div {
|
||||||
|
width: "100%",
|
||||||
|
height: "100%",
|
||||||
|
onclick: move |_| {
|
||||||
tui_ctx.quit();
|
tui_ctx.quit();
|
||||||
} }
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -349,9 +369,13 @@ fn context_menu() {
|
|||||||
modifiers: KeyModifiers::NONE,
|
modifiers: KeyModifiers::NONE,
|
||||||
}));
|
}));
|
||||||
cx.render(rsx! {
|
cx.render(rsx! {
|
||||||
div { width: "100%", height: "100%", oncontextmenu: move |_| {
|
div {
|
||||||
|
width: "100%",
|
||||||
|
height: "100%",
|
||||||
|
oncontextmenu: move |_| {
|
||||||
tui_ctx.quit();
|
tui_ctx.quit();
|
||||||
} }
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user