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