| Index: webkit/api/src/gtk/WebInputEventFactory.cpp
|
| ===================================================================
|
| --- webkit/api/src/gtk/WebInputEventFactory.cpp (revision 19568)
|
| +++ webkit/api/src/gtk/WebInputEventFactory.cpp (working copy)
|
| @@ -214,7 +214,7 @@
|
| return result;
|
| }
|
|
|
| -WebKeyboardEvent WebInputEventFactory::keyboardEvent(wchar_t character, double timeStampSeconds)
|
| +WebKeyboardEvent WebInputEventFactory::keyboardEvent(wchar_t character, int state, double timeStampSeconds)
|
| {
|
| // keyboardEvent(const GdkEventKey*) depends on the GdkEventKey object and
|
| // it is hard to use/ it from signal handlers which don't use GdkEventKey
|
| @@ -224,6 +224,7 @@
|
| WebKeyboardEvent result;
|
| result.type = WebKit::WebInputEvent::Char;
|
| result.timeStampSeconds = timeStampSeconds;
|
| + result.modifiers = gdkStateToWebEventModifiers(state);
|
| result.windowsKeyCode = character;
|
| result.nativeKeyCode = character;
|
| result.text[0] = character;
|
|
|