[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498
Maximiliano Curia
maxy at moszumanska.debian.org
Fri Oct 14 14:28:57 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=9ca9833
The following commit has been merged in the master branch:
commit 9ca9833e9c8bbc44be48cfb665418a547d447a60
Author: David Edmundson <kde at davidedmundson.co.uk>
Date: Tue Sep 8 08:53:59 2015 +0200
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 89ba532..86a7a7f 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<key.length();i++) {
+ QByteArray utf8 = QString(key.at(i)).toUtf8();
+ fakekey_press(m_fakekey, (const uchar*)utf8.constData(), utf8.size(), 0);
+ fakekey_release(m_fakekey);
+ }
}
if (ctrl) XTestFakeKeyEvent (display, XKeysymToKeycode(display, XK_Control_L), False, 0);
--
kdeconnect packaging
More information about the pkg-kde-commits
mailing list