TEXT SELECTION
This commit is contained in:
@@ -23,7 +23,7 @@ pub fn msg_widget(msg: Msg) -> impl WidgetLike<FnTag> {
|
||||
.editable()
|
||||
.size(SIZE)
|
||||
.wrap(true)
|
||||
.id_on(CursorSense::click(), |i, c, d| focus(i.clone(), c, d));
|
||||
.attr::<Selectable>(());
|
||||
let header = text(msg.user).size(SIZE);
|
||||
(
|
||||
image(include_bytes!("../assets/sungals.png"))
|
||||
@@ -70,7 +70,7 @@ pub fn msg_panel(client: &mut Client, network: NetSender) -> impl WidgetFn<Sized
|
||||
client.ui[&msg_area].children.push(msg.any());
|
||||
})
|
||||
.pad(15)
|
||||
.on(CursorSense::click(), focus_other(send_text))
|
||||
.attr::<Selector>(send_text)
|
||||
.scroll()
|
||||
.masked()
|
||||
.background(rect(Color::BLACK.brighter(0.05)).radius(15))
|
||||
|
||||
Reference in New Issue
Block a user