2 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
13 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 #ifndef KeyEventCodesIPhone_h
27 #define KeyEventCodesIPhone_h
29 // Unicodes we reserve for function keys on the keyboard,
30 // OpenStep reserves the range 0xF700-0xF8FF for this purpose.
31 // The availability of various keys will be system dependent.
34 NSUpArrowFunctionKey = 0xF700,
35 NSDownArrowFunctionKey = 0xF701,
36 NSLeftArrowFunctionKey = 0xF702,
37 NSRightArrowFunctionKey = 0xF703,
38 NSF1FunctionKey = 0xF704,
39 NSF2FunctionKey = 0xF705,
40 NSF3FunctionKey = 0xF706,
41 NSF4FunctionKey = 0xF707,
42 NSF5FunctionKey = 0xF708,
43 NSF6FunctionKey = 0xF709,
44 NSF7FunctionKey = 0xF70A,
45 NSF8FunctionKey = 0xF70B,
46 NSF9FunctionKey = 0xF70C,
47 NSF10FunctionKey = 0xF70D,
48 NSF11FunctionKey = 0xF70E,
49 NSF12FunctionKey = 0xF70F,
50 NSF13FunctionKey = 0xF710,
51 NSF14FunctionKey = 0xF711,
52 NSF15FunctionKey = 0xF712,
53 NSF16FunctionKey = 0xF713,
54 NSF17FunctionKey = 0xF714,
55 NSF18FunctionKey = 0xF715,
56 NSF19FunctionKey = 0xF716,
57 NSF20FunctionKey = 0xF717,
58 NSF21FunctionKey = 0xF718,
59 NSF22FunctionKey = 0xF719,
60 NSF23FunctionKey = 0xF71A,
61 NSF24FunctionKey = 0xF71B,
62 NSF25FunctionKey = 0xF71C,
63 NSF26FunctionKey = 0xF71D,
64 NSF27FunctionKey = 0xF71E,
65 NSF28FunctionKey = 0xF71F,
66 NSF29FunctionKey = 0xF720,
67 NSF30FunctionKey = 0xF721,
68 NSF31FunctionKey = 0xF722,
69 NSF32FunctionKey = 0xF723,
70 NSF33FunctionKey = 0xF724,
71 NSF34FunctionKey = 0xF725,
72 NSF35FunctionKey = 0xF726,
73 NSInsertFunctionKey = 0xF727,
74 NSDeleteFunctionKey = 0xF728,
75 NSHomeFunctionKey = 0xF729,
76 NSBeginFunctionKey = 0xF72A,
77 NSEndFunctionKey = 0xF72B,
78 NSPageUpFunctionKey = 0xF72C,
79 NSPageDownFunctionKey = 0xF72D,
80 NSPrintScreenFunctionKey = 0xF72E,
81 NSScrollLockFunctionKey = 0xF72F,
82 NSPauseFunctionKey = 0xF730,
83 NSSysReqFunctionKey = 0xF731,
84 NSBreakFunctionKey = 0xF732,
85 NSResetFunctionKey = 0xF733,
86 NSStopFunctionKey = 0xF734,
87 NSMenuFunctionKey = 0xF735,
88 NSUserFunctionKey = 0xF736,
89 NSSystemFunctionKey = 0xF737,
90 NSPrintFunctionKey = 0xF738,
91 NSClearLineFunctionKey = 0xF739,
92 NSClearDisplayFunctionKey = 0xF73A,
93 NSInsertLineFunctionKey = 0xF73B,
94 NSDeleteLineFunctionKey = 0xF73C,
95 NSInsertCharFunctionKey = 0xF73D,
96 NSDeleteCharFunctionKey = 0xF73E,
97 NSPrevFunctionKey = 0xF73F,
98 NSNextFunctionKey = 0xF740,
99 NSSelectFunctionKey = 0xF741,
100 NSExecuteFunctionKey = 0xF742,
101 NSUndoFunctionKey = 0xF743,
102 NSRedoFunctionKey = 0xF744,
103 NSFindFunctionKey = 0xF745,
104 NSHelpFunctionKey = 0xF746,
105 NSModeSwitchFunctionKey = 0xF747
109 NSParagraphSeparatorCharacter = 0x2029,
110 NSLineSeparatorCharacter = 0x2028,
111 NSTabCharacter = 0x0009,
112 NSFormFeedCharacter = 0x000c,
113 NSNewlineCharacter = 0x000a,
114 NSCarriageReturnCharacter = 0x000d,
115 NSEnterCharacter = 0x0003,
116 NSBackspaceCharacter = 0x0008,
117 NSBackTabCharacter = 0x0019,
118 NSDeleteCharacter = 0x007f
121 #endif // KeyEventCodesIPhone_h