WaylandInputDevice:Bugfix, sending wrong keycode
authorNobuhiko Tanibata <ntanibata@jp.adit-jv.com>
Thu, 27 Sep 2012 02:34:21 +0000 (11:34 +0900)
committerTimo Lotterbach <timo.lotterbach@bmw-carit.de>
Thu, 22 Nov 2012 10:01:27 +0000 (02:01 -0800)
LayerManagerPlugins/Renderers/Graphic/src/WindowSystems/WaylandInputDevice.cpp

index 8f4789f..e36b615 100644 (file)
@@ -290,19 +290,19 @@ WaylandInputDevice::sendKeyPressEvent(struct wl_surface* surface,
     if (keyboard->focus_resource){
         uint32_t serial = wl_display_next_serial(m_wlDisplay);
         wl_keyboard_send_key(keyboard->focus_resource,
-                             serial, time, code - 8, 1);
+                             serial, time, code, 1);
     }
 }
 
 void
-WaylandInputDevice::sendKeyReleaseEvent(struct wl_surface* surface,
+WaylandInputDevice::sendKeyReleaseEvent(struct wl_surface* /*surface*/,
                                         uint32_t time, uint32_t code)
 {
     wl_keyboard *keyboard = keyboardDevice();
     if (keyboard->focus_resource){
         uint32_t serial = wl_display_next_serial(m_wlDisplay);
         wl_keyboard_send_key(keyboard->focus_resource,
-                             serial, time, code - 8, 0);
+                             serial, time, code, 0);
     }
 }