Skip to content
Permalink
Browse files
[GTK] Fix modifiers on EventSenderProxy::keyDown
https://bugs.webkit.org/show_bug.cgi?id=128496

Patch by Carlos Garnacho <carlosg@gnome.org> on 2014-02-09
Reviewed by Carlos Garcia Campos.

* WebKitTestRunner/gtk/EventSenderProxyGtk.cpp:
(WTR::EventSenderProxy::keyDown): do not attempt to doubly transform modifiers
into GTK+ ones.

Canonical link: https://commits.webkit.org/146518@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163750 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
garnacho authored and webkit-commit-queue committed Feb 9, 2014
1 parent b184336 commit 0547eceaa52d9d4c23631676242da6f403190f6f
Showing with 12 additions and 1 deletion.
  1. +11 −0 Tools/ChangeLog
  2. +1 −1 Tools/WebKitTestRunner/gtk/EventSenderProxyGtk.cpp
@@ -1,3 +1,14 @@
2014-02-09 Carlos Garnacho <carlosg@gnome.org>

[GTK] Fix modifiers on EventSenderProxy::keyDown
https://bugs.webkit.org/show_bug.cgi?id=128496

Reviewed by Carlos Garcia Campos.

* WebKitTestRunner/gtk/EventSenderProxyGtk.cpp:
(WTR::EventSenderProxy::keyDown): do not attempt to doubly transform modifiers
into GTK+ ones.

2014-02-09 Carlos Garnacho <carlosg@gnome.org>

[GTK] Enable touch features
@@ -291,7 +291,7 @@ void EventSenderProxy::keyDown(WKStringRef keyRef, WKEventModifiers wkModifiers,

GdkEvent* pressEvent = gdk_event_new(GDK_KEY_PRESS);
pressEvent->key.keyval = gdkKeySym;
pressEvent->key.state = webkitModifiersToGDKModifiers(modifiers);
pressEvent->key.state = modifiers;
pressEvent->key.window = gtk_widget_get_window(GTK_WIDGET(m_testController->mainWebView()->platformWindow()));
g_object_ref(pressEvent->key.window);
gdk_event_set_device(pressEvent, gdk_device_manager_get_client_pointer(gdk_display_get_device_manager(gdk_window_get_display(pressEvent->key.window))));

0 comments on commit 0547ece

Please sign in to comment.