Function
createEvent
(target: FocusableElement, e: EventBase)
Source from the content-addressed store, hash-verified
| 1096 | } |
| 1097 | |
| 1098 | function createEvent(target: FocusableElement, e: EventBase): EventBase { |
| 1099 | let clientX = e.clientX; |
| 1100 | let clientY = e.clientY; |
| 1101 | return { |
| 1102 | currentTarget: target, |
| 1103 | shiftKey: e.shiftKey, |
| 1104 | ctrlKey: e.ctrlKey, |
| 1105 | metaKey: e.metaKey, |
| 1106 | altKey: e.altKey, |
| 1107 | clientX, |
| 1108 | clientY, |
| 1109 | key: e.key |
| 1110 | }; |
| 1111 | } |
| 1112 | |
| 1113 | interface Rect { |
| 1114 | top: number; |
Tested by
no test coverage detected