Skip to content

Commit 7d3a6c4

Browse files
committed
1 parent 6a85074 commit 7d3a6c4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

events.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,13 @@ type DOMTransactionEvent struct{ *BasicEvent }
227227
type DragEvent struct{ *BasicEvent }
228228
type EditingBeforeInputEvent struct{ *BasicEvent }
229229
type ErrorEvent struct{ *BasicEvent }
230+
230231
type FocusEvent struct{ *BasicEvent }
232+
233+
func (ev *FocusEvent) RelatedTarget() Element {
234+
return wrapElement(ev.Get("relatedTarget"))
235+
}
236+
231237
type GamepadEvent struct{ *BasicEvent }
232238
type HashChangeEvent struct{ *BasicEvent }
233239
type IDBVersionChangeEvent struct{ *BasicEvent }

0 commit comments

Comments
 (0)