Skip to content

Commit

Permalink
adds correct event props from DOM spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Knape committed Jun 22, 2017
1 parent 8f144e2 commit 0f0da0b
Showing 1 changed file with 39 additions and 31 deletions.
70 changes: 39 additions & 31 deletions src/events/event-props.js
Original file line number Diff line number Diff line change
@@ -1,62 +1,70 @@
export default {
Global: [
Event: [
'bubbles',
'cancelable',
'isTrusted',
'currentTarget'
],
MouseEvent: [
'bubbles',
'cancelable',
'view',
'detail',
'screenX',
'screenY',
'altKey',
'button',
'buttons',
'clientX',
'clientY',
'ctrlKey',
'metaKey',
'movementX',
'movementY',
'offsetX',
'offsetY',
'pageX',
'pageY',
'ctrl',
'alt',
'shift',
'meta',
'button',
'region',
'screenX',
'screenY',
'shiftKey',
'relatedTarget',
],
KeyboardEvent: [
'bubbles',
'cancelable',
'ctrl',
'alt',
'shift',
'meta',
'altKey',
'code',
'ctrlKey',
'isComposing',
'key',
'location',
'metaKey',
'repeat',
'shiftKey',
// Deprecated
'charCode',
'keyCode',
'which',
],
TouchEvent: [
'view',
'detail',
'altKey',
'changedTouches',
'ctrlKey',
'metaKey',
'shiftKey',
'targetTouches',
'touches',
'ctrl',
'alt',
'shift',
'meta',
'button',
'relatedTarget',
],
Touch: [
'identifier',
'screenX',
'screenY',
'clientX',
'clientY',
'identifier',
'pageX',
'pageY',
'screenX',
'screenY',
'target',
],
FocusEvent: [

'relatedTarget'
],
UIEvent: [

'detail',
'view',
],
CustomEvent: [
'details'
Expand Down

0 comments on commit 0f0da0b

Please sign in to comment.