Update Examples
parent
b319018f6d
commit
b5b3831993
@ -387,7 +387,7 @@ enum WebEvent
|
|||||||
Paste(String),
|
Paste(String),
|
||||||
// or like structures.
|
// or like structures.
|
||||||
Click
|
Click
|
||||||
x: i64, y: i64
|
x, y: i64
|
||||||
|
|
||||||
fn inspect(event: WebEvent)
|
fn inspect(event: WebEvent)
|
||||||
match event // Note variant auto-import
|
match event // Note variant auto-import
|
||||||
@ -403,6 +403,7 @@ fn inspect(event: WebEvent)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
fn main()
|
fn main()
|
||||||
let pressed = WebEvent::KeyPress 'x'
|
let pressed = WebEvent::KeyPress 'x'
|
||||||
pasted = WebEvent::Paste s"my text"
|
pasted = WebEvent::Paste s"my text"
|
||||||
|
Loading…
Reference in New Issue
Block a user