| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 2006, 2007 Apple Inc.  All rights reserved. | 2  * Copyright (C) 2006, 2007 Apple Inc.  All rights reserved. | 
| 3  * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com | 3  * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com | 
| 4  * Copyright (C) 2007 Holger Hans Peter Freyther | 4  * Copyright (C) 2007 Holger Hans Peter Freyther | 
| 5  * Copyright (C) 2008 Collabora, Ltd.  All rights reserved. | 5  * Copyright (C) 2008 Collabora, Ltd.  All rights reserved. | 
| 6  * Copyright (C) 2008, 2009 Google Inc. | 6  * Copyright (C) 2008, 2009 Google Inc. | 
| 7  * | 7  * | 
| 8  * Redistribution and use in source and binary forms, with or without | 8  * Redistribution and use in source and binary forms, with or without | 
| 9  * modification, are permitted provided that the following conditions | 9  * modification, are permitted provided that the following conditions | 
| 10  * are met: | 10  * are met: | 
| (...skipping 14 matching lines...) Expand all  Loading... | 
| 25  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 
| 26  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 26  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 
| 27  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 
| 28  */ | 28  */ | 
| 29 | 29 | 
| 30 // windowsKeyCodeForKeyEvent is copied from platform/gtk/KeyEventGtk.cpp | 30 // windowsKeyCodeForKeyEvent is copied from platform/gtk/KeyEventGtk.cpp | 
| 31 | 31 | 
| 32 #include "config.h" | 32 #include "config.h" | 
| 33 #include "core/platform/chromium/KeyCodeConversion.h" | 33 #include "core/platform/chromium/KeyCodeConversion.h" | 
| 34 | 34 | 
| 35 #include "core/platform/chromium/KeyboardCodes.h" | 35 #include "platform/KeyboardCodes.h" | 
| 36 | 36 | 
| 37 #include <gdk/gdkkeysyms.h> | 37 #include <gdk/gdkkeysyms.h> | 
| 38 | 38 | 
| 39 namespace WebCore { | 39 namespace WebCore { | 
| 40 | 40 | 
| 41 int windowsKeyCodeForKeyEvent(unsigned keycode) | 41 int windowsKeyCodeForKeyEvent(unsigned keycode) | 
| 42 { | 42 { | 
| 43     switch (keycode) { | 43     switch (keycode) { | 
| 44     case GDK_KP_0: | 44     case GDK_KP_0: | 
| 45         return VKEY_NUMPAD0; // (60) Numeric keypad 0 key | 45         return VKEY_NUMPAD0; // (60) Numeric keypad 0 key | 
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 427     case GDK_F22: | 427     case GDK_F22: | 
| 428     case GDK_F23: | 428     case GDK_F23: | 
| 429     case GDK_F24: | 429     case GDK_F24: | 
| 430         return VKEY_F1 + (keycode - GDK_F1); | 430         return VKEY_F1 + (keycode - GDK_F1); | 
| 431     default: | 431     default: | 
| 432         return 0; | 432         return 0; | 
| 433     } | 433     } | 
| 434 } | 434 } | 
| 435 | 435 | 
| 436 } // namespace WebCore | 436 } // namespace WebCore | 
| OLD | NEW | 
|---|