From 9ca9833e9c8bbc44be48cfb665418a547d447a60 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Tue, 8 Sep 2015 08:53:59 +0200 Subject: [PATCH] Handle strings and better utf8 in mousepad plugin --- plugins/mousepad/mousepadplugin.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/mousepad/mousepadplugin.cpp b/plugins/mousepad/mousepadplugin.cpp index 89ba532f1..86a7a7f14 100644 --- a/plugins/mousepad/mousepadplugin.cpp +++ b/plugins/mousepad/mousepadplugin.cpp @@ -208,8 +208,11 @@ bool MousepadPlugin::handlePackageX11(const NetworkPackage &np) } //We use fakekey here instead of XTest (above) because it can handle utf characters instead of keycodes. - fakekey_press(m_fakekey, (const unsigned char*)key.toUtf8().constData(), -1, 0); - fakekey_release(m_fakekey); + for (int i=0;i