Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /* | 5 /* |
| 6 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. | 6 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. |
| 7 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com | 7 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com |
| 8 * Copyright (C) 2007 Holger Hans Peter Freyther | 8 * Copyright (C) 2007 Holger Hans Peter Freyther |
| 9 * Copyright (C) 2008 Collabora, Ltd. All rights reserved. | 9 * Copyright (C) 2008 Collabora, Ltd. All rights reserved. |
| 10 * Copyright (C) 2008, 2009 Google Inc. | 10 * Copyright (C) 2008, 2009 Google Inc. |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 142 case GDK_Print: | 142 case GDK_Print: |
| 143 return VKEY_PRINT; // (2A) PRINT key | 143 return VKEY_PRINT; // (2A) PRINT key |
| 144 case GDK_Execute: | 144 case GDK_Execute: |
| 145 return VKEY_EXECUTE; // (2B) EXECUTE key | 145 return VKEY_EXECUTE; // (2B) EXECUTE key |
| 146 // dunno on this | 146 // dunno on this |
| 147 // case GDK_PrintScreen: | 147 // case GDK_PrintScreen: |
| 148 // return VKEY_SNAPSHOT; // (2C) PRINT SCREEN key | 148 // return VKEY_SNAPSHOT; // (2C) PRINT SCREEN key |
| 149 case GDK_Insert: | 149 case GDK_Insert: |
| 150 return VKEY_INSERT; // (2D) INS key | 150 return VKEY_INSERT; // (2D) INS key |
| 151 case GDK_Delete: | 151 case GDK_Delete: |
| 152 case GDK_KP_Delete: | |
|
Peter Kasting
2011/01/20 19:44:37
There are lots of other GDK_KP_xxx codes too (I fo
oshima
2011/01/20 21:35:48
OK I'll investigate and address them in separate C
| |
| 152 return VKEY_DELETE; // (2E) DEL key | 153 return VKEY_DELETE; // (2E) DEL key |
| 153 case GDK_Help: | 154 case GDK_Help: |
| 154 return VKEY_HELP; // (2F) HELP key | 155 return VKEY_HELP; // (2F) HELP key |
| 155 case GDK_0: | 156 case GDK_0: |
| 156 case GDK_parenright: | 157 case GDK_parenright: |
| 157 return VKEY_0; // (30) 0) key | 158 return VKEY_0; // (30) 0) key |
| 158 case GDK_1: | 159 case GDK_1: |
| 159 case GDK_exclam: | 160 case GDK_exclam: |
| 160 return VKEY_1; // (31) 1 ! key | 161 return VKEY_1; // (31) 1 ! key |
| 161 case GDK_2: | 162 case GDK_2: |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 608 case VKEY_F23: | 609 case VKEY_F23: |
| 609 case VKEY_F24: | 610 case VKEY_F24: |
| 610 return GDK_F1 + (keycode - VKEY_F1); | 611 return GDK_F1 + (keycode - VKEY_F1); |
| 611 | 612 |
| 612 default: | 613 default: |
| 613 return 0; | 614 return 0; |
| 614 } | 615 } |
| 615 } | 616 } |
| 616 | 617 |
| 617 } // namespace ui | 618 } // namespace ui |
| OLD | NEW |