OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 #include "X11/Xlib.h" | 8 #include "X11/Xlib.h" |
9 #include "X11/keysym.h" | 9 #include "X11/keysym.h" |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 case XK_End: | 24 case XK_End: |
25 return kEnd_SkKey; | 25 return kEnd_SkKey; |
26 case XK_Right: | 26 case XK_Right: |
27 return kRight_SkKey; | 27 return kRight_SkKey; |
28 case XK_Left: | 28 case XK_Left: |
29 return kLeft_SkKey; | 29 return kLeft_SkKey; |
30 case XK_Down: | 30 case XK_Down: |
31 return kDown_SkKey; | 31 return kDown_SkKey; |
32 case XK_Up: | 32 case XK_Up: |
33 return kUp_SkKey; | 33 return kUp_SkKey; |
| 34 case XK_KP_0: |
| 35 case XK_KP_Insert: |
| 36 return k0_SkKey; |
| 37 case XK_KP_1: |
| 38 case XK_KP_End: |
| 39 return k1_SkKey; |
| 40 case XK_KP_2: |
| 41 case XK_KP_Down: |
| 42 return k2_SkKey; |
| 43 case XK_KP_3: |
| 44 case XK_KP_Page_Down: |
| 45 return k3_SkKey; |
| 46 case XK_KP_4: |
| 47 case XK_KP_Left: |
| 48 return k4_SkKey; |
| 49 case XK_KP_5: |
| 50 return k5_SkKey; |
| 51 case XK_KP_6: |
| 52 case XK_KP_Right: |
| 53 return k6_SkKey; |
| 54 case XK_KP_7: |
| 55 case XK_KP_Home: |
| 56 return k7_SkKey; |
| 57 case XK_KP_8: |
| 58 case XK_KP_Up: |
| 59 return k8_SkKey; |
| 60 case XK_KP_9: |
| 61 case XK_KP_Page_Up: |
| 62 return k9_SkKey; |
34 default: | 63 default: |
35 return kNONE_SkKey; | 64 return kNONE_SkKey; |
36 } | 65 } |
37 } | 66 } |
38 #endif | 67 #endif |
OLD | NEW |