| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 #include "config.h" | 7 #include "config.h" |
| 8 | 8 |
| 9 #include "webkit/glue/webinputevent.h" | 9 #include "webkit/glue/webinputevent.h" |
| 10 | 10 |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 modifiers |= CTRL_KEY; | 153 modifiers |= CTRL_KEY; |
| 154 if ([event modifierFlags] & NSShiftKeyMask) | 154 if ([event modifierFlags] & NSShiftKeyMask) |
| 155 modifiers |= SHIFT_KEY; | 155 modifiers |= SHIFT_KEY; |
| 156 if ([event modifierFlags] & NSAlternateKeyMask) | 156 if ([event modifierFlags] & NSAlternateKeyMask) |
| 157 modifiers |= ALT_KEY; | 157 modifiers |= ALT_KEY; |
| 158 | 158 |
| 159 if ([event isARepeat]) | 159 if ([event isARepeat]) |
| 160 modifiers |= IS_AUTO_REPEAT; | 160 modifiers |= IS_AUTO_REPEAT; |
| 161 | 161 |
| 162 key_code = [event keyCode]; | 162 key_code = [event keyCode]; |
| 163 key_data = [[event characters] characterAtIndex:0]; | |
| 164 | 163 |
| 165 mac_event = event; // retains |event| | 164 mac_event = event; // retains |event| |
| 166 } | 165 } |
| OLD | NEW |