Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
80529 views
1
/**
2
* Copyright 2013-2015, Facebook, Inc.
3
* All rights reserved.
4
*
5
* This source code is licensed under the BSD-style license found in the
6
* LICENSE file in the root directory of this source tree. An additional grant
7
* of patent rights can be found in the PATENTS file in the same directory.
8
*
9
* @providesModule EventConstants
10
*/
11
12
'use strict';
13
14
var keyMirror = require("./keyMirror");
15
16
var PropagationPhases = keyMirror({bubbled: null, captured: null});
17
18
/**
19
* Types of raw signals from the browser caught at the top level.
20
*/
21
var topLevelTypes = keyMirror({
22
topBlur: null,
23
topChange: null,
24
topClick: null,
25
topCompositionEnd: null,
26
topCompositionStart: null,
27
topCompositionUpdate: null,
28
topContextMenu: null,
29
topCopy: null,
30
topCut: null,
31
topDoubleClick: null,
32
topDrag: null,
33
topDragEnd: null,
34
topDragEnter: null,
35
topDragExit: null,
36
topDragLeave: null,
37
topDragOver: null,
38
topDragStart: null,
39
topDrop: null,
40
topError: null,
41
topFocus: null,
42
topInput: null,
43
topKeyDown: null,
44
topKeyPress: null,
45
topKeyUp: null,
46
topLoad: null,
47
topMouseDown: null,
48
topMouseMove: null,
49
topMouseOut: null,
50
topMouseOver: null,
51
topMouseUp: null,
52
topPaste: null,
53
topReset: null,
54
topScroll: null,
55
topSelectionChange: null,
56
topSubmit: null,
57
topTextInput: null,
58
topTouchCancel: null,
59
topTouchEnd: null,
60
topTouchMove: null,
61
topTouchStart: null,
62
topWheel: null
63
});
64
65
var EventConstants = {
66
topLevelTypes: topLevelTypes,
67
PropagationPhases: PropagationPhases
68
};
69
70
module.exports = EventConstants;
71
72