API  1.0.0
CPEvent_Constants.j
Go to the documentation of this file.
1 /*
2  * CPEvent_Constants.j
3  * AppKit
4  *
5  * Created by Francisco Tolmasky.
6  * Copyright 2008, 280 North, Inc.
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  */
22 
32 CPKeyDown = 10;
33 CPKeyUp = 11;
44 
45 // iPhone Event Types
50 
52 CPShiftKeyMask = 1 << 17;
53 CPControlKeyMask = 1 << 18;
55 CPCommandKeyMask = 1 << 20;
57 CPHelpKeyMask = 1 << 22;
60 
82 CPAnyEventMask = 0xffffffff;
83 
88 CPF1FunctionKey = "\uF704";
89 CPF2FunctionKey = "\uF705";
90 CPF3FunctionKey = "\uF706";
91 CPF4FunctionKey = "\uF707";
92 CPF5FunctionKey = "\uF708";
93 CPF6FunctionKey = "\uF709";
94 CPF7FunctionKey = "\uF70A";
95 CPF8FunctionKey = "\uF70B";
96 CPF9FunctionKey = "\uF70C";
97 CPF10FunctionKey = "\uF70D";
98 CPF11FunctionKey = "\uF70E";
99 CPF12FunctionKey = "\uF70F";
100 CPF13FunctionKey = "\uF710";
101 CPF14FunctionKey = "\uF711";
102 CPF15FunctionKey = "\uF712";
103 CPF16FunctionKey = "\uF713";
104 CPF17FunctionKey = "\uF714";
105 CPF18FunctionKey = "\uF715";
106 CPF19FunctionKey = "\uF716";
107 CPF20FunctionKey = "\uF717";
108 CPF21FunctionKey = "\uF718";
109 CPF22FunctionKey = "\uF719";
110 CPF23FunctionKey = "\uF71A";
111 CPF24FunctionKey = "\uF71B";
112 CPF25FunctionKey = "\uF71C";
113 CPF26FunctionKey = "\uF71D";
114 CPF27FunctionKey = "\uF71E";
115 CPF28FunctionKey = "\uF71F";
116 CPF29FunctionKey = "\uF720";
117 CPF30FunctionKey = "\uF721";
118 CPF31FunctionKey = "\uF722";
119 CPF32FunctionKey = "\uF723";
120 CPF33FunctionKey = "\uF724";
121 CPF34FunctionKey = "\uF725";
122 CPF35FunctionKey = "\uF726";
125 CPHomeFunctionKey = "\uF729";
127 CPEndFunctionKey = "\uF72B";
136 CPStopFunctionKey = "\uF734";
137 CPMenuFunctionKey = "\uF735";
138 CPUserFunctionKey = "\uF736";
147 CPPrevFunctionKey = "\uF73F";
148 CPNextFunctionKey = "\uF740";
151 CPUndoFunctionKey = "\uF743";
152 CPRedoFunctionKey = "\uF744";
153 CPFindFunctionKey = "\uF745";
154 CPHelpFunctionKey = "\uF746";
158 
159 
161 CPDOMEventMouseDown = "mousedown";
162 CPDOMEventMouseUp = "mouseup";
163 CPDOMEventMouseMoved = "mousemove";
165 CPDOMEventKeyUp = "keyup";
166 CPDOMEventKeyDown = "keydown";
167 CPDOMEventKeyPress = "keypress";
168 CPDOMEventCopy = "copy";
169 CPDOMEventPaste = "paste";
170 CPDOMEventScrollWheel = "mousewheel";
171 CPDOMEventTouchStart = "touchstart";
172 CPDOMEventTouchMove = "touchmove";
173 CPDOMEventTouchEnd = "touchend";
174 CPDOMEventTouchCancel = "touchcancel";
CPDeviceIndependentModifierFlagsMask
CPPeriodicMask
CPClearLineFunctionKey
CPBeginFunctionKey
CPF6FunctionKey
CPDOMEventDoubleClick
CPF1FunctionKey
CPF19FunctionKey
CPDOMEventScrollWheel
CPInsertFunctionKey
CPModeSwitchFunctionKey
CPScrollWheelMask
CPF30FunctionKey
CPF32FunctionKey
CPTouchEnd
CPDOMEventTouchStart
CPRightArrowFunctionKey
CPMouseExited
CPF34FunctionKey
CPMouseMovedMask
CPFunctionKeyMask
CPF20FunctionKey
CPDOMEventMouseDragged
CPF18FunctionKey
CPF23FunctionKey
CPCursorUpdateMask
CPPrintFunctionKey
CPF15FunctionKey
CPHomeFunctionKey
CPLeftMouseUpMask
CPF12FunctionKey
CPDeleteFunctionKey
CPOtherMouseDownMask
CPPageDownFunctionKey
CPF26FunctionKey
CPOtherMouseDown
CPF3FunctionKey
CPPrintScreenFunctionKey
CPF27FunctionKey
CPKeyUpMask
CPExecuteFunctionKey
CPAppKitDefinedMask
CPF16FunctionKey
CPResetFunctionKey
CPSystemFunctionKey
CPDOMEventMouseMoved
CPHelpKeyMask
CPCursorUpdate
CPMouseMoved
CPDOMEventKeyDown
CPDOMEventTouchEnd
CPMouseEntered
CPF24FunctionKey
CPAlternateKeyMask
CPFindFunctionKey
CPDOMEventMouseDown
CPNextFunctionKey
CPSelectFunctionKey
CPCommandKeyMask
CPRightMouseDragged
CPEndFunctionKey
CPPageUpFunctionKey
CPF2FunctionKey
CPUndoFunctionKey
CPEscapeFunctionKey
CPOtherMouseUpMask
CPFlagsChanged
CPFlagsChangedMask
CPLeftMouseDownMask
CPDOMEventTouchCancel
CPAlphaShiftKeyMask
CPKeyDown
CPDOMEventCopy
CPNumericPadKeyMask
CPInsertLineFunctionKey
CPTouchStart
CPRightMouseUpMask
CPHelpFunctionKey
CPF11FunctionKey
CPF31FunctionKey
CPLeftArrowFunctionKey
CPBreakFunctionKey
CPLeftMouseUp
CPShiftKeyMask
CPF22FunctionKey
CPRightMouseDraggedMask
CPF13FunctionKey
CPF25FunctionKey
CPF21FunctionKey
CPDOMEventKeyUp
CPF33FunctionKey
CPUpArrowFunctionKey
CPF9FunctionKey
CPDOMEventKeyPress
CPSystemDefinedMask
CPSystemDefined
CPF29FunctionKey
CPClearDisplayFunctionKey
CPScrollLockFunctionKey
CPTouchCancel
CPPrevFunctionKey
CPLeftMouseDragged
CPMenuFunctionKey
CPLeftMouseDraggedMask
CPSpaceFunctionKey
CPInsertCharFunctionKey
CPMouseExitedMask
CPMouseEnteredMask
CPDownArrowFunctionKey
CPOtherMouseDragged
CPRightMouseDownMask
CPRightMouseUp
CPPauseFunctionKey
CPLeftMouseDown
CPF8FunctionKey
CPF35FunctionKey
CPOtherMouseUp
CPF28FunctionKey
CPDeleteLineFunctionKey
CPControlKeyMask
CPDeleteCharFunctionKey
CPTouchMove
CPDOMEventTouchMove
CPApplicationDefinedMask
CPF5FunctionKey
CPKeyDownMask
CPAnyEventMask
CPApplicationDefined
CPStopFunctionKey
CPDOMEventPaste
CPF4FunctionKey
CPAppKitDefined
CPUserFunctionKey
CPF17FunctionKey
CPF7FunctionKey
CPDOMEventMouseUp
CPRightMouseDown
CPF10FunctionKey
CPSysReqFunctionKey
CPPeriodic
CPScrollWheel
CPRedoFunctionKey
CPF14FunctionKey